diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index ec68edce6cc3..71f2916f93ff 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1669,6 +1669,7 @@ static void nfs4_return_incompatible_delegation(struct inode *inode, fmode_t fmo | |||
1669 | { | 1669 | { |
1670 | struct nfs_delegation *delegation; | 1670 | struct nfs_delegation *delegation; |
1671 | 1671 | ||
1672 | fmode &= FMODE_READ|FMODE_WRITE; | ||
1672 | rcu_read_lock(); | 1673 | rcu_read_lock(); |
1673 | delegation = rcu_dereference(NFS_I(inode)->delegation); | 1674 | delegation = rcu_dereference(NFS_I(inode)->delegation); |
1674 | if (delegation == NULL || (delegation->type & fmode) == fmode) { | 1675 | if (delegation == NULL || (delegation->type & fmode) == fmode) { |