]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: do not set filesystem readonly if link down
authorjiangyiwen <jiangyiwen@huawei.com>
Wed, 10 Dec 2014 23:42:02 +0000 (15:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:03 +0000 (17:41 -0800)
commitd7261d1ae6edeeff631f89edfd9661d96cd14653
tree8af83e034d83e50a93e22cc11edf98ad1ebd995a
parent4ebc8b5612504c2f558568230813bab72695e4b6
ocfs2: do not set filesystem readonly if link down

Do not set the filesystem readonly if the storage link is down.  In this
case, metadata is not corrupted and only -EIO is returned.  And if it is
indeed corrupted metadata, it has already called ocfs2_error() in
ocfs2_validate_inode_block().

Signed-off-by: Yiwen Jiang <jiangyiwen@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/aops.c
fs/ocfs2/dir.c