xfs: don't warn about files that are exactly s_maxbytes long
authorDarrick J. Wong <djwong@kernel.org>
Thu, 17 Nov 2022 00:08:03 +0000 (16:08 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 17 Nov 2022 00:11:51 +0000 (16:11 -0800)
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>
fs/xfs/scrub/inode.c

index 51820b40ab1c8ce0b1fede025d70104815c9f5f8..7a2f38e5202c351abaa05edf86b4abf64a44b918 100644 (file)
@@ -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 */