]> git.karo-electronics.de Git - linux-beck.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)
commit83d230eb5c638949350f4761acdfc0af5cb1bc00
treede880020e9e8b7a7902e1a8b57711644c25f97b4
parentd2b3964a0780d2d2994eba57f950d6c9fe489ed8
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