summaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr_hurd.c
diff options
context:
space:
mode:
authorBaokun Li <libaokun1@huawei.com>2024-08-22 10:35:44 +0800
committerTheodore Ts'o <tytso@mit.edu>2024-09-03 22:14:12 -0400
commit2352e3e461926b59f01c1e39fbb0494891cff997 (patch)
treecdad97c679194540b5aace3776b498b305f12d02 /fs/ext4/xattr_hurd.c
parenta2c613b8c4860d5e70010e7391fff727c5d96bab (diff)
downloadlinux-2352e3e461926b59f01c1e39fbb0494891cff997.tar.gz
linux-2352e3e461926b59f01c1e39fbb0494891cff997.tar.bz2
linux-2352e3e461926b59f01c1e39fbb0494891cff997.zip
ext4: make some fast commit functions reuse extents path
The ext4_find_extent() can update the extent path so that it does not have to allocate and free the path repeatedly, thus reducing the consumption of memory allocation and freeing in the following functions: ext4_ext_clear_bb ext4_ext_replay_set_iblocks ext4_fc_replay_add_range ext4_fc_set_bitmaps_and_counters No functional changes. Note that ext4_find_extent() does not support error pointers, so in this case set path to NULL first. Signed-off-by: Baokun Li <libaokun1@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com> Tested-by: Ojaswin Mujoo <ojaswin@linux.ibm.com> Link: https://patch.msgid.link/20240822023545.1994557-25-libaokun@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/xattr_hurd.c')
0 files changed, 0 insertions, 0 deletions