ocfs2: fix start offset to ocfs2_zero_range_for_truncate()
[cascardo/linux.git] / fs / ext4 / move_extent.c
index 325cef4..a920c5d 100644 (file)
@@ -400,7 +400,7 @@ data_copy:
 
        /* Even in case of data=writeback it is reasonable to pin
         * inode to transaction, to prevent unexpected data loss */
-       *err = ext4_jbd2_file_inode(handle, orig_inode);
+       *err = ext4_jbd2_inode_add_write(handle, orig_inode);
 
 unlock_pages:
        unlock_page(pagep[0]);