diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c7bc6264110349abba3471cbdbb6329303261d08..7ec697b37f19316e0476869ec79b491e6370b3f6 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -960,8 +960,10 @@ static int f2fs_write_begin(struct file *file, struct address_space *mapping, /* check inline_data */ ipage = get_node_page(sbi, inode->i_ino); - if (IS_ERR(ipage)) + if (IS_ERR(ipage)) { + err = PTR_ERR(ipage); goto unlock_fail; + } set_new_dnode(&dn, inode, ipage, ipage, 0);