]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ext4: refuse ro to rw remount of fs with orphan inodes
authorEric Sandeen <sandeen@redhat.com>
Sat, 10 Feb 2007 09:46:08 +0000 (01:46 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:34 +0000 (10:51 -0800)
commit9edf29b0dd43acd0a85a5bec3ae6eb9428cb057c
tree32e518737ab4b656cdf573167a6ac6308c4c3aad
parent9c2a9695b8a0bfd192d9bcf685df09bd26d935cd
[PATCH] ext4: refuse ro to rw remount of fs with orphan inodes

In the rare case where we have skipped orphan inode processing due to a
readonly block device, and the block device subsequently changes back to
read-write, disallow a remount,rw transition of the filesystem when we have an
unprocessed orphan inodes as this would corrupt the list.

Ideally we should process the orphan inode list during the remount, but that's
trickier, and this plugs the hole for now.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext4/super.c