提交 bd5ab5f9 编写于 作者: D 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: NDarrick J. Wong <djwong@kernel.org>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册