afs: simplify sget_fc() call
PATCH 1/1 afs: simplify sget_fc() call
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 <[email protected]>
--- fs/afs/super.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
fs/afs/super.c +1 -6
@@ -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;
Signature · 1 line
2.30.2
Quoted 4 lines · Luis Chamberlain
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 <[email protected]>
*poke*
Luis
Quoted 7 lines · Luis Chamberlain
Quoted 4 lines · Luis Chamberlain
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 <[email protected]>*poke*
*re-poke*
Luis