aboutsummaryrefslogtreecommitdiffstats
path: root/fs/drop_caches.c
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2012-12-25 14:08:16 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 08:43:57 -0800
commit1ba9a27ec24b133799bc1b8a77d733c4015d0abd (patch)
tree106791a88f3767d40e74d4fb440cbb52f54d0ced /fs/drop_caches.c
parent7c558b7eb837ca7bc014af2f5509be143c3c3670 (diff)
downloadkernel_samsung_smdk4412-1ba9a27ec24b133799bc1b8a77d733c4015d0abd.zip
kernel_samsung_smdk4412-1ba9a27ec24b133799bc1b8a77d733c4015d0abd.tar.gz
kernel_samsung_smdk4412-1ba9a27ec24b133799bc1b8a77d733c4015d0abd.tar.bz2
ext4: do not try to write superblock on ro remount w/o journal
commit d096ad0f79a782935d2e06ae8fb235e8c5397775 upstream. When a journal-less ext4 filesystem is mounted on a read-only block device (blockdev --setro will do), each remount (for other, unrelated, flags, like suid=>nosuid etc) results in a series of scary messages from kernel telling about I/O errors on the device. This is becauese of the following code ext4_remount(): if (sbi->s_journal == NULL) ext4_commit_super(sb, 1); at the end of remount procedure, which forces writing (flushing) of a superblock regardless whenever it is dirty or not, if the filesystem is readonly or not, and whenever the device itself is readonly or not. We only need call ext4_commit_super when the file system had been previously mounted read/write. Thanks to Eric Sandeen for help in diagnosing this issue. Signed-off-By: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/drop_caches.c')
0 files changed, 0 insertions, 0 deletions