ext4: check dioread_nolock on remount
authorJan Kara <jack@suse.cz>
Thu, 20 Dec 2012 05:07:18 +0000 (00:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Dec 2012 05:07:18 +0000 (00:07 -0500)
commit261cb20cb2f0737a247aaf08dff7eb065e3e5b66
tree0205a427601caf513c17aa22a8991ccedf1c95c8
parentc36575e663e302dbaa4d16b9c72d2c9a913a9aef
ext4: check dioread_nolock on remount

Currently we allow enabling dioread_nolock mount option on remount for
filesystems where blocksize < PAGE_CACHE_SIZE.  This isn't really
supported so fix the bug by moving the check for blocksize !=
PAGE_CACHE_SIZE into parse_options(). Change the original PAGE_SIZE to
PAGE_CACHE_SIZE along the way because that's what we are really
interested in.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Cc: stable@vger.kernel.org
fs/ext4/super.c