]> Pileus Git - ~andy/linux/blobdiff - fs/xfs/xfs_dir2_leaf.c
xfs: constify xfs_item_ops
[~andy/linux] / fs / xfs / xfs_dir2_leaf.c
index ca2386d82cdfce8817d723eba11ea7da9fa27ed7..66e108f561a39aa9efcc1d4199bce74e0068855d 100644 (file)
@@ -888,12 +888,10 @@ xfs_dir2_leaf_getdents(
                                 * we already have in the table.
                                 */
                                nmap = map_size - map_valid;
-                               error = xfs_bmapi(NULL, dp,
-                                       map_off,
+                               error = xfs_bmapi_read(dp, map_off,
                                        xfs_dir2_byte_to_da(mp,
                                                XFS_DIR2_LEAF_OFFSET) - map_off,
-                                       XFS_BMAPI_METADATA, NULL, 0,
-                                       &map[map_valid], &nmap, NULL);
+                                       &map[map_valid], &nmap, 0);
                                /*
                                 * Don't know if we should ignore this or
                                 * try to return an error.