Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Christoph Hellwig | 5278511 | 2015-02-16 11:49:23 +1100 | [diff] [blame] | 2 | #ifndef _XFS_PNFS_H |
| 3 | #define _XFS_PNFS_H 1 |
| 4 | |
Benjamin Coddington | 15d66ac | 2016-07-08 09:53:20 -0400 | [diff] [blame] | 5 | #ifdef CONFIG_EXPORTFS_BLOCK_OPS |
Christoph Hellwig | 5278511 | 2015-02-16 11:49:23 +1100 | [diff] [blame] | 6 | int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset); |
| 7 | int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length, |
| 8 | struct iomap *iomap, bool write, u32 *device_generation); |
| 9 | int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps, |
| 10 | struct iattr *iattr); |
Christoph Hellwig | 781355c | 2015-02-16 11:59:50 +1100 | [diff] [blame] | 11 | |
Dan Williams | 69eb5fa | 2018-03-20 14:42:38 -0700 | [diff] [blame] | 12 | int xfs_break_leased_layouts(struct inode *inode, uint *iolock, |
| 13 | bool *did_unlock); |
Christoph Hellwig | 781355c | 2015-02-16 11:59:50 +1100 | [diff] [blame] | 14 | #else |
Christoph Hellwig | 21c3ea1 | 2015-04-13 11:38:29 +1000 | [diff] [blame] | 15 | static inline int |
Dan Williams | 69eb5fa | 2018-03-20 14:42:38 -0700 | [diff] [blame] | 16 | xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock) |
Christoph Hellwig | 781355c | 2015-02-16 11:59:50 +1100 | [diff] [blame] | 17 | { |
| 18 | return 0; |
| 19 | } |
Benjamin Coddington | 15d66ac | 2016-07-08 09:53:20 -0400 | [diff] [blame] | 20 | #endif /* CONFIG_EXPORTFS_BLOCK_OPS */ |
Christoph Hellwig | 5278511 | 2015-02-16 11:49:23 +1100 | [diff] [blame] | 21 | #endif /* _XFS_PNFS_H */ |