diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 17dc1857a72b9699d4614639f85fc074cfc34b2e..a705c1d42716248df2483c2132ea6427557131ca 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -263,7 +263,7 @@ static int __replace_atomic_write_block(struct inode *inode, pgoff_t index, f2fs_put_dnode(&dn); trace_f2fs_replace_atomic_write_block(inode, F2FS_I(inode)->cow_inode, - index, *old_addr, new_addr, recover); + index, old_addr ? *old_addr : 0, new_addr, recover); return 0; }