diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2015-03-16 19:06:23 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-04-23 20:36:28 +0200 |
commit | 9a51940bf65bf9fdc93027d70bdecdfc403c5b24 (patch) | |
tree | 2b5a6788cebb2ed1a02d398d929d5a78572bec46 /fs/nfs/nfs4file.c | |
parent | NFS: Block new writes while syncing data in nfs_getattr() (diff) | |
download | linux-9a51940bf65bf9fdc93027d70bdecdfc403c5b24.tar.xz linux-9a51940bf65bf9fdc93027d70bdecdfc403c5b24.zip |
NFS: Don't zap caches on fallocate()
This patch adds a GETATTR to the end of ALLOCATE and DEALLOCATE
operations so we can set the updated inode size and change attribute
directly. DEALLOCATE will still need to release pagecache pages, so
nfs42_proc_deallocate() now calls truncate_pagecache_range() before
contacting the server.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4file.c')
-rw-r--r-- | fs/nfs/nfs4file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c index 866842b048ef..151ddff624d4 100644 --- a/fs/nfs/nfs4file.c +++ b/fs/nfs/nfs4file.c @@ -165,7 +165,6 @@ static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t ret = nfs42_proc_allocate(filep, offset, len); mutex_unlock(&inode->i_mutex); - nfs_zap_caches(inode); return ret; } #endif /* CONFIG_NFS_V4_2 */ |