]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: check dioread_nolock on remount
authorJan Kara <jack@suse.cz>
Thu, 20 Dec 2012 05:07:18 +0000 (00:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:23 +0000 (08:46 -0800)
commit7b563c7c8d2297ee7063b69c151e741b3d4b6eac
treeb16c7ad9f3c9aa56165370ede5e046ee951587e6
parent7e195bc5bfc5e82fdf735372a4773e6894676911
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c