aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-11-04 04:18:48 +0000
committerDarrick J. Wong <[email protected]>2024-11-05 21:38:30 +0000
commitfdf5703b61101eb29747f7ed23ad57192cf277fd (patch)
treec9474e52941fe5cb69f44846b491a97804356efe /fs/xfs/xfs_inode.c
parentxfs: constify the xfs_sb predicates (diff)
downloadkernel-fdf5703b61101eb29747f7ed23ad57192cf277fd.tar.gz
kernel-fdf5703b61101eb29747f7ed23ad57192cf277fd.zip
xfs: constify the xfs_inode predicates
Change the xfs_inode predicates to take a const struct xfs_inode pointer because they do not change the inode. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 693770f9bb09..a8430f30d6df 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -3040,7 +3040,7 @@ xfs_inode_alloc_unitsize(
/* Should we always be using copy on write for file writes? */
bool
xfs_is_always_cow_inode(
- struct xfs_inode *ip)
+ const struct xfs_inode *ip)
{
return ip->i_mount->m_always_cow && xfs_has_reflink(ip->i_mount);
}