summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_pnfs.h
blob: bf43b2009e4cc1e9ee5802da83ad543a4927beac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _XFS_PNFS_H
#define _XFS_PNFS_H 1

#include <linux/exportfs_block.h>

#ifdef CONFIG_EXPORTFS_BLOCK_OPS
int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
		bool *did_unlock);
#else
static inline int
xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock)
{
	return 0;
}
#endif /* CONFIG_EXPORTFS_BLOCK_OPS */

extern const struct exportfs_block_ops xfs_export_block_ops;

#endif /* _XFS_PNFS_H */