Messages in this thread Patch in this message |  | | From | Luis Chamberlain <> | Subject | [PATCH] afs: simplify sget_fc() call | Date | Mon, 26 Jul 2021 13:22:53 -0700 |
| |
We can just use set_anon_super_fc(), no need for our own custom implementation of something we already have available.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> --- fs/afs/super.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/fs/afs/super.c b/fs/afs/super.c index e38bb1e7a4d2..b6d044913a0f 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c @@ -434,11 +434,6 @@ static int afs_dynroot_test_super(struct super_block *sb, struct fs_context *fc) as->dyn_root); } -static int afs_set_super(struct super_block *sb, struct fs_context *fc) -{ - return set_anon_super(sb, NULL); -} - /* * fill in the superblock */ @@ -575,7 +570,7 @@ static int afs_get_tree(struct fs_context *fc) /* allocate a deviceless superblock */ sb = sget_fc(fc, as->dyn_root ? afs_dynroot_test_super : afs_test_super, - afs_set_super); + set_anon_super_fc); if (IS_ERR(sb)) { ret = PTR_ERR(sb); goto error; -- 2.30.2
|  |