]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_reflink.c
xfs: remove the mappedbno argument to xfs_dir3_leafn_read
[linux.git] / fs / xfs / xfs_reflink.c
index 19a6e46441237f517fca29f13053e8e203016f4b..de451235c4ee3aa64004bf660d926f18fe5dc83a 100644 (file)
@@ -410,8 +410,8 @@ xfs_reflink_allocate_cow(
        /* Allocate the entire reservation as unwritten blocks. */
        nimaps = 1;
        error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount,
-                       XFS_BMAPI_COWFORK | XFS_BMAPI_PREALLOC,
-                       resblks, cmap, &nimaps);
+                       XFS_BMAPI_COWFORK | XFS_BMAPI_PREALLOC, 0, cmap,
+                       &nimaps);
        if (error)
                goto out_unreserve;
 
@@ -1270,7 +1270,7 @@ xfs_reflink_zero_posteof(
 
        trace_xfs_zero_eof(ip, isize, pos - isize);
        return iomap_zero_range(VFS_I(ip), isize, pos - isize, NULL,
-                       &xfs_iomap_ops);
+                       &xfs_buffered_write_iomap_ops);
 }
 
 /*
@@ -1527,7 +1527,8 @@ xfs_reflink_unshare(
 
        inode_dio_wait(inode);
 
-       error = iomap_file_unshare(inode, offset, len, &xfs_iomap_ops);
+       error = iomap_file_unshare(inode, offset, len,
+                       &xfs_buffered_write_iomap_ops);
        if (error)
                goto out;
        error = filemap_write_and_wait(inode->i_mapping);