OSDN Git Service

f2fs: fix to consider multiple device for readonly check
authorChao Yu <yuchao0@huawei.com>
Mon, 22 Apr 2019 12:22:36 +0000 (20:22 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 9 May 2019 05:00:11 +0000 (22:00 -0700)
commit25f68cbbdb86de89b6541dac53b595976c6f73c7
tree25b09f5ef92e10c29c7ef98c3dff255d2681c012
parenta90ff12b2ff5aba6f9ae77d4d79c21c9131c2a35
f2fs: fix to consider multiple device for readonly check

This patch introduce f2fs_hw_is_readonly() to check whether lower
device is readonly or not, it adapts multiple device scenario.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c