summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_pnfs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-02-16 11:59:50 +1100
committerDave Chinner <david@fromorbit.com>2015-02-16 11:59:50 +1100
commit781355c6e5ae87908de27dec3380a34918c33eee (patch)
tree9c747dd4207fae358368c3217d5e71f7d3a0af38 /fs/xfs/xfs_pnfs.h
parent527851124d10f9c50b1c578e0a56fcd49922422d (diff)
downloadlinux-781355c6e5ae87908de27dec3380a34918c33eee.tar.gz
linux-781355c6e5ae87908de27dec3380a34918c33eee.tar.bz2
linux-781355c6e5ae87908de27dec3380a34918c33eee.zip
xfs: recall pNFS layouts on conflicting access
Recall all outstanding pNFS layouts and truncates, writes and similar extent list modifying operations. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_pnfs.h')
-rw-r--r--fs/xfs/xfs_pnfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_pnfs.h b/fs/xfs/xfs_pnfs.h
index 0d91255a89ae..b7fbfce660f6 100644
--- a/fs/xfs/xfs_pnfs.h
+++ b/fs/xfs/xfs_pnfs.h
@@ -7,5 +7,12 @@ int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length,
struct iomap *iomap, bool write, u32 *device_generation);
int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
struct iattr *iattr);
+
+int xfs_break_layouts(struct inode *inode, uint *iolock);
+#else
+static inline int xfs_break_layouts(struct inode *inode, uint *iolock)
+{
+ return 0;
+}
#endif /* CONFIG_NFSD_PNFS */
#endif /* _XFS_PNFS_H */