Commit bd5ab5f9 authored by Darrick J. Wong's avatar Darrick J. Wong

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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent 5eef4635
...@@ -365,7 +365,7 @@ xchk_dinode( ...@@ -365,7 +365,7 @@ xchk_dinode(
* pagecache can't cache all the blocks in this file due to * pagecache can't cache all the blocks in this file due to
* overly large offsets, flag the inode for admin review. * 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); xchk_ino_set_warning(sc, ino);
/* di_nblocks */ /* di_nblocks */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment