commit | b5418383ef13f70528281546d02c15edc03d8567 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Tue Jun 10 18:31:02 2008 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed Jul 09 12:08:50 2008 -0400 |
tree | a25d5e9c78c14af25a71046541eaa9f77819d9a9 | |
parent | 0f38b873aeaae698c3693748438547c8493165fb [diff] [blame] |
NFS: do_setlk(): don't flush caches when we have a delegation Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 7ac89a8..0213c21 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c
@@ -602,7 +602,8 @@ * This makes locking act as a cache coherency point. */ nfs_sync_mapping(filp->f_mapping); - nfs_zap_caches(inode); + if (!nfs_have_delegation(inode, FMODE_READ)) + nfs_zap_caches(inode); out: return status; }