nfsd: consolidate set_access and set_deny
authorJeff Layton <jlayton@redhat.com>
Fri, 11 May 2012 13:45:11 +0000 (09:45 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:29:46 +0000 (20:29 -0400)
commit5ae037e599de5a97eb6ae1054db2fdfbfbac65b5
treea8fd1d7db096c4479e5582b64a0227c56751ce4b
parentf07ea10dc8f20dfc215b15b012741fcf9f5aa17b
nfsd: consolidate set_access and set_deny

These functions are identical. Also, rename them to bmap_to_share_mode
to better reflect what they do, and have them just return the result
instead of passing in a pointer to the storage location.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c