aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents_status.c
diff options
context:
space:
mode:
authorYe Bin <yebin10@huawei.com>2022-09-24 10:12:11 +0800
committerTheodore Ts'o <tytso@mit.edu>2022-09-30 23:46:54 -0400
commit7ff5fddaddf2cc8d394f71e68648e9d8d7e41da8 (patch)
treeeb31e16ebdab886acc23d3a3c4f075fdf7961af7 /fs/ext4/extents_status.c
parentext4: remove unnecessary drop path references in mext_check_coverage() (diff)
downloadlinux-dev-7ff5fddaddf2cc8d394f71e68648e9d8d7e41da8.tar.xz
linux-dev-7ff5fddaddf2cc8d394f71e68648e9d8d7e41da8.zip
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.c3
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,