aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_icache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_icache.c')
-rw-r--r--fs/xfs/xfs_icache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c
index 2abc9450ce20..16219b9c6790 100644
--- a/fs/xfs/xfs_icache.c
+++ b/fs/xfs/xfs_icache.c
@@ -620,7 +620,7 @@ restart:
620 620
621/* 621/*
622 * Background scanning to trim post-EOF preallocated space. This is queued 622 * Background scanning to trim post-EOF preallocated space. This is queued
623 * based on the 'background_prealloc_discard_period' tunable (5m by default). 623 * based on the 'speculative_prealloc_lifetime' tunable (5m by default).
624 */ 624 */
625STATIC void 625STATIC void
626xfs_queue_eofblocks( 626xfs_queue_eofblocks(
@@ -1204,15 +1204,15 @@ xfs_inode_match_id(
1204 struct xfs_inode *ip, 1204 struct xfs_inode *ip,
1205 struct xfs_eofblocks *eofb) 1205 struct xfs_eofblocks *eofb)
1206{ 1206{
1207 if (eofb->eof_flags & XFS_EOF_FLAGS_UID && 1207 if ((eofb->eof_flags & XFS_EOF_FLAGS_UID) &&
1208 ip->i_d.di_uid != eofb->eof_uid) 1208 !uid_eq(VFS_I(ip)->i_uid, eofb->eof_uid))
1209 return 0; 1209 return 0;
1210 1210
1211 if (eofb->eof_flags & XFS_EOF_FLAGS_GID && 1211 if ((eofb->eof_flags & XFS_EOF_FLAGS_GID) &&
1212 ip->i_d.di_gid != eofb->eof_gid) 1212 !gid_eq(VFS_I(ip)->i_gid, eofb->eof_gid))
1213 return 0; 1213 return 0;
1214 1214
1215 if (eofb->eof_flags & XFS_EOF_FLAGS_PRID && 1215 if ((eofb->eof_flags & XFS_EOF_FLAGS_PRID) &&
1216 xfs_get_projid(ip) != eofb->eof_prid) 1216 xfs_get_projid(ip) != eofb->eof_prid)
1217 return 0; 1217 return 0;
1218 1218