]> git.ipfire.org Git - people/arne_f/kernel.git/commit
xfs: verify dirblocklog correctly
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 2 Feb 2017 07:56:07 +0000 (08:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Feb 2017 08:47:12 +0000 (09:47 +0100)
commit29094164ea999bfc48ef48780c1ae057afaafcb1
tree74cf60748620a56bba5c5c936c2a078b423a2acd
parent214d55efa25557ca4d023c4001d798b7d360cd8b
xfs: verify dirblocklog correctly

commit 83d230eb5c638949350f4761acdfc0af5cb1bc00 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_sb.c