aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.h
diff options
context:
space:
mode:
authorRitesh Harjani <[email protected]>2020-10-08 15:02:48 +0000
committerTheodore Ts'o <[email protected]>2020-10-18 14:37:15 +0000
commitd1e18b8824dd50cff255e6cecf515ea598eaf9f0 (patch)
tree87cd994bf8656232343d3e047c1c348a2f3628ae /fs/ext4/fast_commit.h
parentext4: data=journal: write-protect pages on j_submit_inode_data_buffers() (diff)
downloadkernel-d1e18b8824dd50cff255e6cecf515ea598eaf9f0.tar.gz
kernel-d1e18b8824dd50cff255e6cecf515ea598eaf9f0.zip
ext4: fix bs < ps issue reported with dioread_nolock mount opt
left shifting m_lblk by blkbits was causing value overflow and hence it was not able to convert unwritten to written extent. So, make sure we typecast it to loff_t before do left shift operation. Also in func ext4_convert_unwritten_io_end_vec(), make sure to initialize ret variable to avoid accidentally returning an uninitialized ret. This patch fixes the issue reported in ext4 for bs < ps with dioread_nolock mount option. Fixes: c8cc88163f40df39e50c ("ext4: Add support for blocksize < pagesize in dioread_nolock") Cc: [email protected] Reported-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Ritesh Harjani <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/af902b5db99e8b73980c795d84ad7bb417487e76.1602168865.git.riteshh@linux.ibm.com Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.h')
0 files changed, 0 insertions, 0 deletions