diff options
author | Baokun Li <libaokun1@huawei.com> | 2024-08-22 10:35:35 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2024-09-03 22:12:17 -0400 |
commit | 1de82b1b60d4613753254bf3cbf622a4c02c945c (patch) | |
tree | e264c6efd0ac4c0b1caed4156cdc1f58c40d152e /security/inode.c | |
parent | f7d1331f16a869c76a5102caebb58e840e1d509c (diff) |
ext4: get rid of ppath in ext4_split_extent_at()
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_at(), the following is done
here:
* Free the extents path when an error is encountered.
* Its caller needs to update ppath if it uses ppath.
* Teach ext4_ext_show_leaf() to skip 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-16-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'security/inode.c')
0 files changed, 0 insertions, 0 deletions