]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't zap caches on fallocate()
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Mon, 16 Mar 2015 18:06:23 +0000 (14:06 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 23 Apr 2015 18:36:28 +0000 (14:36 -0400)
commit900e88bf527ed3ac224f6ec9f1cbce99fcbdf693
tree2b5a6788cebb2ed1a02d398d929d5a78572bec46
parent630b7d259c217fba87ed1637e7b6304a6ae9d7e2
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>
fs/nfs/inode.c
fs/nfs/nfs42proc.c
fs/nfs/nfs42xdr.c
fs/nfs/nfs4file.c
include/linux/nfs_xdr.h