From: Darrick J. Wong Date: Thu, 17 Nov 2022 00:08:03 +0000 (-0800) Subject: xfs: don't warn about files that are exactly s_maxbytes long X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bd5ab5f9874109586cbae5bc98e1f9ff574627e2;p=linux.git 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 Reviewed-by: Dave Chinner --- diff --git a/fs/xfs/scrub/inode.c b/fs/xfs/scrub/inode.c index 51820b40ab1c8..7a2f38e5202c3 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 */