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

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_convert_unwritten_extents_endio(), the
following is done here:

 * Free the extents path when an error is encountered.
 * 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-20-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c