From: Luis Chamberlain <mcgrof@kernel.org>
To: dhowells@redhat.com, neilb@suse.de
Cc: linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org,
Luis Chamberlain <mcgrof@kernel.org>
Subject: [PATCH] afs: simplify sget_fc() call
Date: Mon, 26 Jul 2021 13:22:53 -0700 [thread overview]
Message-ID: <20210726202253.2226788-1-mcgrof@kernel.org> (raw)
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
next reply other threads:[~2021-07-26 20:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-26 20:22 Luis Chamberlain [this message]
2021-10-22 23:15 ` Luis Chamberlain
2021-11-05 16:05 ` Luis Chamberlain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210726202253.2226788-1-mcgrof@kernel.org \
--to=mcgrof@kernel.org \
--cc=dhowells@redhat.com \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®