]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/f2fs/f2fs.h
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 04:23:12 +0000 (21:23 -0700)
commitf824deb54b683165b953371a0529446c723ef6d6
treef2fa33f3cc0b3e10d8c50acb2eed730c5191f223
parentb471eb99e64495a1f0e430da3f96b88f600d3bb5
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