Commit 45ba66cc authored by Jeff Layton's avatar Jeff Layton Committed by Chuck Lever

nfsd: eliminate find_deleg_file_locked

We really don't need an accessor function here.
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent fcb53097
...@@ -686,15 +686,6 @@ static struct nfsd_file *find_any_file_locked(struct nfs4_file *f) ...@@ -686,15 +686,6 @@ static struct nfsd_file *find_any_file_locked(struct nfs4_file *f)
return NULL; return NULL;
} }
static struct nfsd_file *find_deleg_file_locked(struct nfs4_file *f)
{
lockdep_assert_held(&f->fi_lock);
if (f->fi_deleg_file)
return f->fi_deleg_file;
return NULL;
}
static atomic_long_t num_delegations; static atomic_long_t num_delegations;
unsigned long max_delegations; unsigned long max_delegations;
...@@ -2703,7 +2694,7 @@ static int nfs4_show_deleg(struct seq_file *s, struct nfs4_stid *st) ...@@ -2703,7 +2694,7 @@ static int nfs4_show_deleg(struct seq_file *s, struct nfs4_stid *st)
ds = delegstateid(st); ds = delegstateid(st);
nf = st->sc_file; nf = st->sc_file;
spin_lock(&nf->fi_lock); spin_lock(&nf->fi_lock);
file = find_deleg_file_locked(nf); file = nf->fi_deleg_file;
if (!file) if (!file)
goto out; goto out;
......
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