]> www.infradead.org Git - users/willy/xarray.git/commit
ext4: get rid of ppath in get_ext_path()
authorBaokun Li <libaokun1@huawei.com>
Thu, 22 Aug 2024 02:35:32 +0000 (10:35 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 4 Sep 2024 02:12:17 +0000 (22:12 -0400)
commit6b854d552711aa33f59eda334e6d94a00d8825bb
tree4c2e8bc8adff00a3ed0e9958ee1732c9d83f4994
parent0be4c0c2f17bd10ae16c852f02d51a6a7b318aca
ext4: get rid of ppath in get_ext_path()

The use of path and ppath is now very confusing, so to make the code more
readable, pass path between functions uniformly, and get rid of ppath.

After getting rid of ppath in get_ext_path(), its caller may pass an error
pointer to ext4_free_ext_path(), so it needs to teach ext4_free_ext_path()
and ext4_ext_drop_refs() to skip the error pointer. No functional changes.

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