aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/inline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index 92e9852d316a..d09a0bdc0197 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -188,7 +188,8 @@ int f2fs_convert_inline_inode(struct inode *inode)
188 struct page *ipage, *page; 188 struct page *ipage, *page;
189 int err = 0; 189 int err = 0;
190 190
191 if (!f2fs_has_inline_data(inode)) 191 if (!f2fs_has_inline_data(inode) ||
192 f2fs_hw_is_readonly(sbi) || f2fs_readonly(sbi->sb))
192 return 0; 193 return 0;
193 194
194 page = f2fs_grab_cache_page(inode->i_mapping, 0, false); 195 page = f2fs_grab_cache_page(inode->i_mapping, 0, false);