]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: verify dirblocklog correctly
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Feb 2017 03:03:54 +0000 (21:03 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Feb 2017 03:03:54 +0000 (21:03 -0600)
commit2e6fca287e26c984578a6fd980a569213d16d600
treecd9f3130a495cdcda7bfcb9064ba9eba9e811ecc
parent7075a23fc770ada904e1795bb0b44c0c36942ed2
xfs: verify dirblocklog correctly

Source kernel commit: 83d230eb5c638949350f4761acdfc0af5cb1bc00

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_sb.c