0001
0002 #ifndef _XFS_PNFS_H
0003 #define _XFS_PNFS_H 1
0004
0005 #ifdef CONFIG_EXPORTFS_BLOCK_OPS
0006 int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
0007 int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length,
0008 struct iomap *iomap, bool write, u32 *device_generation);
0009 int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
0010 struct iattr *iattr);
0011
0012 int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
0013 bool *did_unlock);
0014 #else
0015 static inline int
0016 xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock)
0017 {
0018 return 0;
0019 }
0020 #endif
0021 #endif