Skip to content

Commit eb059a4

Browse files
Li Lingfengchucklever
authored andcommitted
nfsd: remove unused parameter of nfsd_file_mark_find_or_create
Commit 427f5f8 ("NFSD: Ensure nf_inode is never dereferenced") passes inode directly to nfsd_file_mark_find_or_create instead of getting it from nf, so there is no need to pass nf. Signed-off-by: Li Lingfeng <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent c2feb7e commit eb059a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/filecache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ nfsd_file_mark_put(struct nfsd_file_mark *nfm)
152152
}
153153

154154
static struct nfsd_file_mark *
155-
nfsd_file_mark_find_or_create(struct nfsd_file *nf, struct inode *inode)
155+
nfsd_file_mark_find_or_create(struct inode *inode)
156156
{
157157
int err;
158158
struct fsnotify_mark *mark;
@@ -1078,7 +1078,7 @@ nfsd_file_do_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp,
10781078

10791079
open_file:
10801080
trace_nfsd_file_alloc(nf);
1081-
nf->nf_mark = nfsd_file_mark_find_or_create(nf, inode);
1081+
nf->nf_mark = nfsd_file_mark_find_or_create(inode);
10821082
if (nf->nf_mark) {
10831083
if (file) {
10841084
get_file(file);

0 commit comments

Comments
 (0)