summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-07-18 06:51:01 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-07-18 06:51:01 +0200
commit10b7e9ad44881fcd46ac24eb7374377c6e8962ed (patch)
tree527550c46187a348320564bb451791f29ad17d75 /fs/nfs/pnfs.h
parentNFSv4: Revert "Truncating file opens should also sync O_DIRECT writes" (diff)
downloadlinux-10b7e9ad44881fcd46ac24eb7374377c6e8962ed.tar.xz
linux-10b7e9ad44881fcd46ac24eb7374377c6e8962ed.zip
pNFS: Don't mark the inode as revalidated if a LAYOUTCOMMIT is outstanding
We know that the attributes will need updating if there is still a LAYOUTCOMMIT outstanding. Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index d6be5299a55a..181283c4ebc3 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -629,6 +629,13 @@ pnfs_sync_inode(struct inode *inode, bool datasync)
}
static inline bool
+pnfs_layoutcommit_outstanding(struct inode *inode)
+{
+ return false;
+}
+
+
+static inline bool
pnfs_roc(struct inode *ino)
{
return false;