linux/fs/xfs/xfs_exchrange.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (c) 2020-2024 Oracle.  All Rights Reserved.
 * Author: Darrick J. Wong <[email protected]>
 */
#ifndef __XFS_EXCHRANGE_H__
#define __XFS_EXCHRANGE_H__

/* Update the mtime/cmtime of file1 and file2 */
#define __XFS_EXCHANGE_RANGE_UPD_CMTIME1
#define __XFS_EXCHANGE_RANGE_UPD_CMTIME2

#define XFS_EXCHANGE_RANGE_PRIV_FLAGS

struct xfs_exchrange {};

long xfs_ioc_exchange_range(struct file *file,
		struct xfs_exchange_range __user *argp);

struct xfs_exchmaps_req;

void xfs_exchrange_ilock(struct xfs_trans *tp, struct xfs_inode *ip1,
		struct xfs_inode *ip2);
void xfs_exchrange_iunlock(struct xfs_inode *ip1, struct xfs_inode *ip2);

int xfs_exchrange_estimate(struct xfs_exchmaps_req *req);

#endif /* __XFS_EXCHRANGE_H__ */