Skip to contentSkip to conversation

afs: simplify sget_fc() call

PATCH In review Luis Chamberlain 1 participant 3 messages Jul 26, 2021 – Nov 5, 2021 Afs filesystem

lore
Share & tools
lore
#0 lore raw

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.

---
 fs/afs/super.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
fs/afs/super.c +1 -6
index e38bb1e7a4d2..b6d044913a0f 100644
@@ -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
#2 lore raw
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.

*poke*

*re-poke*

Luis