blob: 940c6c2ad88c5589b7526ea5fb6e1c13fcc75410 [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
Dan Williams69eb5fa2018-03-20 14:42:38 -070012int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
13 bool *did_unlock);
Christoph Hellwig781355c2015-02-16 11:59:50 +110014#else
Christoph Hellwig21c3ea12015-04-13 11:38:29 +100015static inline int
Dan Williams69eb5fa2018-03-20 14:42:38 -070016xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock)
Christoph Hellwig781355c2015-02-16 11:59:50 +110017{
18 return 0;
19}
Benjamin Coddington15d66ac2016-07-08 09:53:20 -040020#endif /* CONFIG_EXPORTFS_BLOCK_OPS */
Christoph Hellwig52785112015-02-16 11:49:23 +110021#endif /* _XFS_PNFS_H */