]> www.infradead.org Git - users/willy/xarray.git/commit
ext4: add new ext4_ext_path_brelse() helper
authorBaokun Li <libaokun1@huawei.com>
Thu, 22 Aug 2024 02:35:29 +0000 (10:35 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 4 Sep 2024 02:12:17 +0000 (22:12 -0400)
commit6c2b3246cd0b951338c54b10f8ca13c59a41c86a
tree6f186036ea85f3afcfd9a22baa6c9eafc7971b58
parentdcaa6c31134c0f515600111c38ed7750003e1b9c
ext4: add new ext4_ext_path_brelse() helper

Add ext4_ext_path_brelse() helper function to reduce duplicate code
and ensure that path->p_bh is set to NULL after it is released.

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-10-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c