162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _XFS_PNFS_H 362306a36Sopenharmony_ci#define _XFS_PNFS_H 1 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#ifdef CONFIG_EXPORTFS_BLOCK_OPS 662306a36Sopenharmony_ciint xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset); 762306a36Sopenharmony_ciint xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length, 862306a36Sopenharmony_ci struct iomap *iomap, bool write, u32 *device_generation); 962306a36Sopenharmony_ciint xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps, 1062306a36Sopenharmony_ci struct iattr *iattr); 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciint xfs_break_leased_layouts(struct inode *inode, uint *iolock, 1362306a36Sopenharmony_ci bool *did_unlock); 1462306a36Sopenharmony_ci#else 1562306a36Sopenharmony_cistatic inline int 1662306a36Sopenharmony_cixfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock) 1762306a36Sopenharmony_ci{ 1862306a36Sopenharmony_ci return 0; 1962306a36Sopenharmony_ci} 2062306a36Sopenharmony_ci#endif /* CONFIG_EXPORTFS_BLOCK_OPS */ 2162306a36Sopenharmony_ci#endif /* _XFS_PNFS_H */ 22