xref: /openbmc/linux/fs/xfs/xfs_pnfs.h (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
252785112SChristoph Hellwig #ifndef _XFS_PNFS_H
352785112SChristoph Hellwig #define _XFS_PNFS_H 1
452785112SChristoph Hellwig 
515d66ac2SBenjamin Coddington #ifdef CONFIG_EXPORTFS_BLOCK_OPS
652785112SChristoph Hellwig int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
752785112SChristoph Hellwig int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length,
852785112SChristoph Hellwig 		struct iomap *iomap, bool write, u32 *device_generation);
952785112SChristoph Hellwig int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
1052785112SChristoph Hellwig 		struct iattr *iattr);
11781355c6SChristoph Hellwig 
12*69eb5fa1SDan Williams int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
13*69eb5fa1SDan Williams 		bool *did_unlock);
14781355c6SChristoph Hellwig #else
1521c3ea18SChristoph Hellwig static inline int
xfs_break_leased_layouts(struct inode * inode,uint * iolock,bool * did_unlock)16*69eb5fa1SDan Williams xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock)
17781355c6SChristoph Hellwig {
18781355c6SChristoph Hellwig 	return 0;
19781355c6SChristoph Hellwig }
2015d66ac2SBenjamin Coddington #endif /* CONFIG_EXPORTFS_BLOCK_OPS */
2152785112SChristoph Hellwig #endif /* _XFS_PNFS_H */
22