diff options
-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 cf62079e9b71..f89ccc263905 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2637,7 +2637,7 @@ nfs4_check_delegmode(struct nfs4_delegation *dp, int flags) | |||
2637 | 2637 | ||
2638 | static int share_access_to_flags(u32 share_access) | 2638 | static int share_access_to_flags(u32 share_access) |
2639 | { | 2639 | { |
2640 | share_access &= ~NFS4_SHARE_WANT_MASK; | 2640 | share_access &= NFS4_SHARE_ACCESS_MASK; |
2641 | 2641 | ||
2642 | return share_access == NFS4_SHARE_ACCESS_READ ? RD_STATE : WR_STATE; | 2642 | return share_access == NFS4_SHARE_ACCESS_READ ? RD_STATE : WR_STATE; |
2643 | } | 2643 | } |