summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-11-16 16:08:03 -0800
committerDarrick J. Wong <djwong@kernel.org>2022-11-16 16:11:51 -0800
commitbd5ab5f9874109586cbae5bc98e1f9ff574627e2 (patch)
tree1c11a6a9da8b91520cd94edeee58b412353c636f /fs/xfs
parent5eef46358fae1a6018d9f886a3ecd30e843728dd (diff)
downloadlinux-bd5ab5f9874109586cbae5bc98e1f9ff574627e2.tar.bz2
xfs: don't warn about files that are exactly s_maxbytes long
We can handle files that are exactly s_maxbytes bytes long; we just can't handle anything larger than that. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/scrub/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/inode.c b/fs/xfs/scrub/inode.c
index 51820b40ab1c..7a2f38e5202c 100644
--- a/fs/xfs/scrub/inode.c
+++ b/fs/xfs/scrub/inode.c
@@ -365,7 +365,7 @@ xchk_dinode(
* pagecache can't cache all the blocks in this file due to
* overly large offsets, flag the inode for admin review.
*/
- if (isize >= mp->m_super->s_maxbytes)
+ if (isize > mp->m_super->s_maxbytes)
xchk_ino_set_warning(sc, ino);
/* di_nblocks */