ext4: don't clear orphan list on ro mount with errors
authorEric Sandeen <sandeen@redhat.com>
Thu, 27 Sep 2012 03:30:12 +0000 (23:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 27 Sep 2012 03:30:12 +0000 (23:30 -0400)
commitc25f9bc6143f4cb4dc31d2ad7a6fe4e4005fc414
tree35b45f146ece8fdd2deb6a62739f685e74bf18ab
parentb794e7a6ebfbddb819b0e75ab59ada6b08a285f2
ext4: don't clear orphan list on ro mount with errors

If the file system contains errors and it is being mounted read-only,
don't clear the orphan list.  We should minimize changes to the file
system if it is mounted read-only.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c