summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-06-29 23:47:20 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-07-06 19:46:57 +0200
commite2aaee9cd34d8396a48abf0b1be81a464c1d51c5 (patch)
treec4fb88e06b3541ae2bcbf610c5abbc7bfab63f71 /fs/xfs/xfs_inode.h
parentxfs: refactor locking and unlocking two inodes against userspace IO (diff)
downloadlinux-e2aaee9cd34d8396a48abf0b1be81a464c1d51c5.tar.xz
linux-e2aaee9cd34d8396a48abf0b1be81a464c1d51c5.zip
xfs: move helpers that lock and unlock two inodes against userspace IO
Move the double-inode locking helpers to xfs_inode.c since they're not specific to reflink. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index 47d3b391030d..1534386b430c 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -499,4 +499,7 @@ void xfs_iunlink_destroy(struct xfs_perag *pag);
void xfs_end_io(struct work_struct *work);
+int xfs_ilock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2);
+void xfs_iunlock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2);
+
#endif /* __XFS_INODE_H__ */