diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 10:59:27 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-12-15 17:29:03 -0800 |
commit | a93d27b41980eb783f430dfe157fcaf5e62c35c3 (patch) | |
tree | 57369a258e1d3702aa0bbe9bbb6a613945db3d2e /fs/xfs/xfs_inode.c | |
parent | 44958c4f62e4a3ef41cb29ed0555161342a380e6 (diff) |
xfs: move inode copy-on-write predicates to xfs_inode.[ch]
Move these inode predicate functions to xfs_inode.[ch] since they're not
reflink functions.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index e1db95285ef4..d992af07d471 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -3921,3 +3921,10 @@ xfs_inode_alloc_unitsize( return XFS_FSB_TO_B(ip->i_mount, blocks); } + +bool +xfs_is_always_cow_inode( + struct xfs_inode *ip) +{ + return ip->i_mount->m_always_cow && xfs_has_reflink(ip->i_mount); +} |