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