1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _XFS_PNFS_H
3*4882a593Smuzhiyun #define _XFS_PNFS_H 1
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun #ifdef CONFIG_EXPORTFS_BLOCK_OPS
6*4882a593Smuzhiyun int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
7*4882a593Smuzhiyun int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length,
8*4882a593Smuzhiyun struct iomap *iomap, bool write, u32 *device_generation);
9*4882a593Smuzhiyun int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
10*4882a593Smuzhiyun struct iattr *iattr);
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
13*4882a593Smuzhiyun bool *did_unlock);
14*4882a593Smuzhiyun #else
15*4882a593Smuzhiyun static inline int
xfs_break_leased_layouts(struct inode * inode,uint * iolock,bool * did_unlock)16*4882a593Smuzhiyun xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock)
17*4882a593Smuzhiyun {
18*4882a593Smuzhiyun return 0;
19*4882a593Smuzhiyun }
20*4882a593Smuzhiyun #endif /* CONFIG_EXPORTFS_BLOCK_OPS */
21*4882a593Smuzhiyun #endif /* _XFS_PNFS_H */
22