diff options
author | Benny Halevy <benny@tonian.com> | 2012-02-16 18:57:00 (GMT) |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-02-17 16:50:36 (GMT) |
commit | 00b5f95a26f2f95b86e59cf86346b06ba14943ee (patch) | |
tree | 51eff7ba54df6d042b276e07be413e0475124879 /fs/nfsd/nfs4state.c | |
parent | 37c593c57324740821766c56e48cf09776a68a9c (diff) | |
download | linux-00b5f95a26f2f95b86e59cf86346b06ba14943ee.tar.xz |
nfsd41: share_access_to_flags should consider only nfs4.x share_access flags
Currently, it will not correctly ignore any nfsv4.1 signal flags
if the client sends them.
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index cf62079..f89ccc2 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -2637,7 +2637,7 @@ nfs4_check_delegmode(struct nfs4_delegation *dp, int flags) static int share_access_to_flags(u32 share_access) { - share_access &= ~NFS4_SHARE_WANT_MASK; + share_access &= NFS4_SHARE_ACCESS_MASK; return share_access == NFS4_SHARE_ACCESS_READ ? RD_STATE : WR_STATE; } |