blob: bf45951e28fe5428ea484ca1d73158aa382f3bb3 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Christoph Hellwig52785112015-02-16 11:49:23 +11002#ifndef _XFS_PNFS_H
3#define _XFS_PNFS_H 1
4
Benjamin Coddington15d66ac2016-07-08 09:53:20 -04005#ifdef CONFIG_EXPORTFS_BLOCK_OPS
Christoph Hellwig52785112015-02-16 11:49:23 +11006int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
7int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length,
8 struct iomap *iomap, bool write, u32 *device_generation);
9int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
10 struct iattr *iattr);
Christoph Hellwig781355c2015-02-16 11:59:50 +110011
Christoph Hellwig65523212016-11-30 14:33:25 +110012int xfs_break_layouts(struct inode *inode, uint *iolock);
Christoph Hellwig781355c2015-02-16 11:59:50 +110013#else
Christoph Hellwig21c3ea12015-04-13 11:38:29 +100014static inline int
Christoph Hellwig65523212016-11-30 14:33:25 +110015xfs_break_layouts(struct inode *inode, uint *iolock)
Christoph Hellwig781355c2015-02-16 11:59:50 +110016{
17 return 0;
18}
Benjamin Coddington15d66ac2016-07-08 09:53:20 -040019#endif /* CONFIG_EXPORTFS_BLOCK_OPS */
Christoph Hellwig52785112015-02-16 11:49:23 +110020#endif /* _XFS_PNFS_H */