]> 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)
commit225bc1b19e6f113fa30f52d9e94526b94e109a62
treede880020e9e8b7a7902e1a8b57711644c25f97b4
parentf8d9d664f7315a3f660cb19dd3ac6955cb23df6a
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