]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: verify dirblocklog correctly
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Jan 2017 03:43:00 +0000 (19:43 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Jan 2017 20:23:33 +0000 (12:23 -0800)
commit7f664632e81e75a82b640d01522b6a67b1d1cc9a
treede880020e9e8b7a7902e1a8b57711644c25f97b4
parent2c7aee8fae2d3cbe075669fefe13a3214a46c58b
xfs: verify dirblocklog correctly

sb_dirblklog is added to sb_blocklog to compute the directory block size
in bytes.  Therefore, we must compare the sum of both those values
against XFS_MAX_BLOCKSIZE_LOG, not just dirblklog.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_sb.c