Skip to content

Commit a614663

Browse files
Mike SnitzerAnna Schumaker
authored andcommitted
nfsd: add nfsd_file_{get,put} to 'nfs_to' nfsd_localio_operations
In later a commit LOCALIO must call both nfsd_file_get and nfsd_file_put to manage extra nfsd_file references. Signed-off-by: Mike Snitzer <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Acked-by: Chuck Lever <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 3feec68 commit a614663

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

fs/nfsd/localio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ static const struct nfsd_localio_operations nfsd_localio_ops = {
2929
.nfsd_serv_put = nfsd_serv_put,
3030
.nfsd_open_local_fh = nfsd_open_local_fh,
3131
.nfsd_file_put_local = nfsd_file_put_local,
32+
.nfsd_file_get = nfsd_file_get,
33+
.nfsd_file_put = nfsd_file_put,
3234
.nfsd_file_file = nfsd_file_file,
3335
};
3436

include/linux/nfslocalio.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ struct nfsd_localio_operations {
5656
const struct nfs_fh *,
5757
const fmode_t);
5858
struct net *(*nfsd_file_put_local)(struct nfsd_file *);
59+
struct nfsd_file *(*nfsd_file_get)(struct nfsd_file *);
60+
void (*nfsd_file_put)(struct nfsd_file *);
5961
struct file *(*nfsd_file_file)(struct nfsd_file *);
6062
} ____cacheline_aligned;
6163

0 commit comments

Comments
 (0)