Commit 126dbf8a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christian Brauner

ntfs3: rename put_ntfs ntfs3_free_sbi

put_ntfs is a rather unconventional name for a function that frees the
sbi and associated resources.  Give it a more descriptive name and drop
the duplicate name in the top of the function comment.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
Message-Id: <20230809220545.1308228-12-hch@lst.de>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 4abc9a43
...@@ -569,9 +569,9 @@ static void init_once(void *foo) ...@@ -569,9 +569,9 @@ static void init_once(void *foo)
} }
/* /*
* put_ntfs - Noinline to reduce binary size. * Noinline to reduce binary size.
*/ */
static noinline void put_ntfs(struct ntfs_sb_info *sbi) static noinline void ntfs3_free_sbi(struct ntfs_sb_info *sbi)
{ {
kfree(sbi->new_rec); kfree(sbi->new_rec);
kvfree(ntfs_put_shared(sbi->upcase)); kvfree(ntfs_put_shared(sbi->upcase));
...@@ -627,7 +627,7 @@ static void ntfs_put_super(struct super_block *sb) ...@@ -627,7 +627,7 @@ static void ntfs_put_super(struct super_block *sb)
ntfs_set_state(sbi, NTFS_DIRTY_CLEAR); ntfs_set_state(sbi, NTFS_DIRTY_CLEAR);
put_mount_options(sbi->options); put_mount_options(sbi->options);
put_ntfs(sbi); ntfs3_free_sbi(sbi);
sb->s_fs_info = NULL; sb->s_fs_info = NULL;
sync_blockdev(sb->s_bdev); sync_blockdev(sb->s_bdev);
...@@ -1569,7 +1569,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc) ...@@ -1569,7 +1569,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
* ntfs_fs_free will be called with fc->s_fs_info = NULL * ntfs_fs_free will be called with fc->s_fs_info = NULL
*/ */
put_mount_options(sbi->options); put_mount_options(sbi->options);
put_ntfs(sbi); ntfs3_free_sbi(sbi);
sb->s_fs_info = NULL; sb->s_fs_info = NULL;
kfree(boot2); kfree(boot2);
...@@ -1659,7 +1659,7 @@ static void ntfs_fs_free(struct fs_context *fc) ...@@ -1659,7 +1659,7 @@ static void ntfs_fs_free(struct fs_context *fc)
struct ntfs_sb_info *sbi = fc->s_fs_info; struct ntfs_sb_info *sbi = fc->s_fs_info;
if (sbi) if (sbi)
put_ntfs(sbi); ntfs3_free_sbi(sbi);
if (opts) if (opts)
put_mount_options(opts); put_mount_options(opts);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment