ext4: check dioread_nolock on remount
authorJan Kara <jack@suse.cz>
Thu, 20 Dec 2012 05:07:18 +0000 (00:07 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 16 Jan 2013 01:13:11 +0000 (01:13 +0000)
commitf21cf73c565eaff16be12637435dd96b84a8e50f
tree62af23e1bd4e1ab56638dc237149e6a4b5983a03
parent29abfe4ddc74a2a597f4a47f02df1f5c4ad4a521
ext4: check dioread_nolock on remount

commit 261cb20cb2f0737a247aaf08dff7eb065e3e5b66 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ext4/super.c