Commit bff2e532 authored by Andrew Price's avatar Andrew Price Committed by Bob Peterson
Browse files

gfs2: Fix invalid block size message

parent 00e8e9bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -179,7 +179,7 @@ static int gfs2_check_sb(struct gfs2_sbd *sdp, int silent)


	if (sb->sb_bsize < 512 || sb->sb_bsize > PAGE_SIZE ||
	if (sb->sb_bsize < 512 || sb->sb_bsize > PAGE_SIZE ||
	    (sb->sb_bsize & (sb->sb_bsize - 1))) {
	    (sb->sb_bsize & (sb->sb_bsize - 1))) {
		pr_warn("Invalid superblock size\n");
		pr_warn("Invalid block size\n");
		return -EINVAL;
		return -EINVAL;
	}
	}