diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 92e9852d316ad9d791176320cb81968588f216e6..d09a0bdc01974a1f6bcdc9a15b3b9292d036cb8c 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -188,7 +188,8 @@ int f2fs_convert_inline_inode(struct inode *inode) struct page *ipage, *page; int err = 0; - if (!f2fs_has_inline_data(inode)) + if (!f2fs_has_inline_data(inode) || + f2fs_hw_is_readonly(sbi) || f2fs_readonly(sbi->sb)) return 0; page = f2fs_grab_cache_page(inode->i_mapping, 0, false);