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

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.

To get rid of the ppath in ext4_split_extent(), the following is done here:

 * The 'allocated' is changed from passing a value to passing an address.
 * Its caller needs to update ppath if it uses ppath.

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