]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: Clean up helper function nfs4_select_rw_stateid()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 13 Aug 2012 22:54:45 +0000 (18:54 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 19 Sep 2012 22:16:17 +0000 (18:16 -0400)
commit761fc61cfd7c9ac2fdf3cbd090b825433ad39ee1
tree91be1e432d9f2dfda63b5f0cf0c2a3389aaf95f7
parent5ff306aeac60efa2708bc4e0d154f8005cc19feb
NFS: Clean up helper function nfs4_select_rw_stateid()

We want to be able to pass on the information that the page was not
dirtied under a lock. Instead of adding a flag parameter, do this
by passing a pointer to a 'struct nfs_lock_owner' that may be NULL.

Also reuse this structure in struct nfs_lock_context to carry the
fl_owner_t and pid_t.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c
fs/nfs/nfs4xdr.c
fs/nfs/pagelist.c
fs/nfs/write.c
include/linux/nfs_fs.h