xfs_pnfs.h 619 B

12345678910111213141516171819
  1. #ifndef _XFS_PNFS_H
  2. #define _XFS_PNFS_H 1
  3. #ifdef CONFIG_NFSD_PNFS
  4. int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
  5. int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length,
  6. struct iomap *iomap, bool write, u32 *device_generation);
  7. int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
  8. struct iattr *iattr);
  9. int xfs_break_layouts(struct inode *inode, uint *iolock, bool with_imutex);
  10. #else
  11. static inline int
  12. xfs_break_layouts(struct inode *inode, uint *iolock, bool with_imutex)
  13. {
  14. return 0;
  15. }
  16. #endif /* CONFIG_NFSD_PNFS */
  17. #endif /* _XFS_PNFS_H */