History

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.

Anna Schumaker committed 11 years ago

Commit 9a519401 parent 8c18d765 files · +39 −10Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/nfs_xdr.h+4−0
@@ -1273,11 +1273,15 @@ struct nfs42_falloc_args { · 1272 unmodified lines
12731273 nfs4_stateid falloc_stateid;
12741274 u64 falloc_offset;
12751275 u64 falloc_length;
1276+ const u32 *falloc_bitmask;
12761277 };
12771278
12781279 struct nfs42_falloc_res {
12791280 struct nfs4_sequence_res seq_res;
12801281 unsigned int status;
1282+
1283+ struct nfs_fattr *falloc_fattr;
1284+ const struct nfs_server *falloc_server;
12811285 };
12821286
12831287 struct nfs42_seek_args {