diff options
author | Ye Bin | 2022-09-24 10:12:11 +0800 |
---|---|---|
committer | Theodore Ts'o | 2022-09-30 23:46:54 -0400 |
commit | 7ff5fddaddf2cc8d394f71e68648e9d8d7e41da8 (patch) | |
tree | eb31e16ebdab886acc23d3a3c4f075fdf7961af7 /fs/ext4/extents_status.c | |
parent | b6a750c01925954d0dc6c360e91b5fcb53664a26 (diff) |
ext4: factor out ext4_free_ext_path()
Factor out ext4_free_ext_path() to free extent path. As after previous patch
'ext4_ext_drop_refs()' is only used in 'extents.c', so make it static.
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220924021211.3831551-3-yebin10@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents_status.c')
-rw-r--r-- | fs/ext4/extents_status.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c index 23167efda95e..cd0a861853e3 100644 --- a/fs/ext4/extents_status.c +++ b/fs/ext4/extents_status.c @@ -667,8 +667,7 @@ static void ext4_es_insert_extent_ext_check(struct inode *inode, } } out: - ext4_ext_drop_refs(path); - kfree(path); + ext4_free_ext_path(path); } static void ext4_es_insert_extent_ind_check(struct inode *inode, |