aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorBaokun Li <[email protected]>2024-05-04 07:55:26 +0000
committerTheodore Ts'o <[email protected]>2024-05-07 19:59:18 +0000
commitdc1c4663bc493f323d6b2f9dd55c044ea920dacf (patch)
tree02a25d49d7318b7e3e97843c826c5f0663b23afb /lib/test_printf.c
parentext4: fix mb_cache_entry's e_refcnt leak in ext4_xattr_block_cache_find() (diff)
downloadkernel-dc1c4663bc493f323d6b2f9dd55c044ea920dacf.tar.gz
kernel-dc1c4663bc493f323d6b2f9dd55c044ea920dacf.zip
ext4: propagate errors from ext4_sb_bread() in ext4_xattr_block_cache_find()
In ext4_xattr_block_cache_find(), when ext4_sb_bread() returns an error, we will either continue to find the next ea block or return NULL to try to insert a new ea block. But whether ext4_sb_bread() returns -EIO or -ENOMEM, the next operation is most likely to fail with the same error. So propagate the error returned by ext4_sb_bread() to make ext4_xattr_block_set() fail to reduce pointless operations. Signed-off-by: Baokun Li <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions