diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-07-02 20:22:31 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-07-02 20:36:55 +0200 |
commit | d76e137057ae84e0ca1aac54a1f1ae7c0596c1cd (patch) | |
tree | 9699a4f996fc273e49911ab1f169b19511f95199 /fs/xfs/xfs_reflink.h | |
parent | xfs: use consistent uid/gid when grabbing dquots for inodes (diff) | |
download | linux-d76e137057ae84e0ca1aac54a1f1ae7c0596c1cd.tar.xz linux-d76e137057ae84e0ca1aac54a1f1ae7c0596c1cd.zip |
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_reflink.h')
-rw-r--r-- | fs/xfs/xfs_reflink.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/xfs/xfs_reflink.h b/fs/xfs/xfs_reflink.h index 65c5dfe17ecf..fb55e4ce49fa 100644 --- a/fs/xfs/xfs_reflink.h +++ b/fs/xfs/xfs_reflink.h @@ -6,16 +6,6 @@ #ifndef __XFS_REFLINK_H #define __XFS_REFLINK_H 1 -static inline bool xfs_is_always_cow_inode(struct xfs_inode *ip) -{ - return ip->i_mount->m_always_cow && xfs_has_reflink(ip->i_mount); -} - -static inline bool xfs_is_cow_inode(struct xfs_inode *ip) -{ - return xfs_is_reflink_inode(ip) || xfs_is_always_cow_inode(ip); -} - extern int xfs_reflink_trim_around_shared(struct xfs_inode *ip, struct xfs_bmbt_irec *irec, bool *shared); int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, |