aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_dir2_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2_node.c')
-rw-r--r--fs/xfs/libxfs/xfs_dir2_node.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2_node.c b/fs/xfs/libxfs/xfs_dir2_node.c
index 2ae6ac2c11ae..afcb7753b61c 100644
--- a/fs/xfs/libxfs/xfs_dir2_node.c
+++ b/fs/xfs/libxfs/xfs_dir2_node.c
@@ -297,7 +297,6 @@ xfs_dir2_leaf_to_node(
297 int i; /* leaf freespace index */ 297 int i; /* leaf freespace index */
298 xfs_dir2_leaf_t *leaf; /* leaf structure */ 298 xfs_dir2_leaf_t *leaf; /* leaf structure */
299 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ 299 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
300 xfs_mount_t *mp; /* filesystem mount point */
301 int n; /* count of live freespc ents */ 300 int n; /* count of live freespc ents */
302 xfs_dir2_data_off_t off; /* freespace entry value */ 301 xfs_dir2_data_off_t off; /* freespace entry value */
303 __be16 *to; /* pointer to freespace entry */ 302 __be16 *to; /* pointer to freespace entry */
@@ -307,7 +306,6 @@ xfs_dir2_leaf_to_node(
307 trace_xfs_dir2_leaf_to_node(args); 306 trace_xfs_dir2_leaf_to_node(args);
308 307
309 dp = args->dp; 308 dp = args->dp;
310 mp = dp->i_mount;
311 tp = args->trans; 309 tp = args->trans;
312 /* 310 /*
313 * Add a freespace block to the directory. 311 * Add a freespace block to the directory.
@@ -387,16 +385,12 @@ xfs_dir2_leafn_add(
387 int lfloghigh; /* high leaf entry logging */ 385 int lfloghigh; /* high leaf entry logging */
388 int lfloglow; /* low leaf entry logging */ 386 int lfloglow; /* low leaf entry logging */
389 int lowstale; /* previous stale entry */ 387 int lowstale; /* previous stale entry */
390 xfs_mount_t *mp; /* filesystem mount point */
391 xfs_trans_t *tp; /* transaction pointer */
392 struct xfs_dir3_icleaf_hdr leafhdr; 388 struct xfs_dir3_icleaf_hdr leafhdr;
393 struct xfs_dir2_leaf_entry *ents; 389 struct xfs_dir2_leaf_entry *ents;
394 390
395 trace_xfs_dir2_leafn_add(args, index); 391 trace_xfs_dir2_leafn_add(args, index);
396 392
397 dp = args->dp; 393 dp = args->dp;
398 mp = dp->i_mount;
399 tp = args->trans;
400 leaf = bp->b_addr; 394 leaf = bp->b_addr;
401 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); 395 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf);
402 ents = dp->d_ops->leaf_ents_p(leaf); 396 ents = dp->d_ops->leaf_ents_p(leaf);
@@ -1170,7 +1164,6 @@ xfs_dir2_leafn_remove(
1170 xfs_dir2_leaf_entry_t *lep; /* leaf entry */ 1164 xfs_dir2_leaf_entry_t *lep; /* leaf entry */
1171 int longest; /* longest data free entry */ 1165 int longest; /* longest data free entry */
1172 int off; /* data block entry offset */ 1166 int off; /* data block entry offset */
1173 xfs_mount_t *mp; /* filesystem mount point */
1174 int needlog; /* need to log data header */ 1167 int needlog; /* need to log data header */
1175 int needscan; /* need to rescan data frees */ 1168 int needscan; /* need to rescan data frees */
1176 xfs_trans_t *tp; /* transaction pointer */ 1169 xfs_trans_t *tp; /* transaction pointer */
@@ -1182,7 +1175,6 @@ xfs_dir2_leafn_remove(
1182 1175
1183 dp = args->dp; 1176 dp = args->dp;
1184 tp = args->trans; 1177 tp = args->trans;
1185 mp = dp->i_mount;
1186 leaf = bp->b_addr; 1178 leaf = bp->b_addr;
1187 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); 1179 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf);
1188 ents = dp->d_ops->leaf_ents_p(leaf); 1180 ents = dp->d_ops->leaf_ents_p(leaf);
@@ -1323,7 +1315,6 @@ xfs_dir2_leafn_split(
1323 xfs_da_args_t *args; /* operation arguments */ 1315 xfs_da_args_t *args; /* operation arguments */
1324 xfs_dablk_t blkno; /* new leaf block number */ 1316 xfs_dablk_t blkno; /* new leaf block number */
1325 int error; /* error return value */ 1317 int error; /* error return value */
1326 xfs_mount_t *mp; /* filesystem mount point */
1327 struct xfs_inode *dp; 1318 struct xfs_inode *dp;
1328 1319
1329 /* 1320 /*
@@ -1331,7 +1322,6 @@ xfs_dir2_leafn_split(
1331 */ 1322 */
1332 args = state->args; 1323 args = state->args;
1333 dp = args->dp; 1324 dp = args->dp;
1334 mp = dp->i_mount;
1335 ASSERT(oldblk->magic == XFS_DIR2_LEAFN_MAGIC); 1325 ASSERT(oldblk->magic == XFS_DIR2_LEAFN_MAGIC);
1336 error = xfs_da_grow_inode(args, &blkno); 1326 error = xfs_da_grow_inode(args, &blkno);
1337 if (error) { 1327 if (error) {
@@ -2231,12 +2221,10 @@ xfs_dir2_node_trim_free(
2231 xfs_inode_t *dp; /* incore directory inode */ 2221 xfs_inode_t *dp; /* incore directory inode */
2232 int error; /* error return code */ 2222 int error; /* error return code */
2233 xfs_dir2_free_t *free; /* freespace structure */ 2223 xfs_dir2_free_t *free; /* freespace structure */
2234 xfs_mount_t *mp; /* filesystem mount point */
2235 xfs_trans_t *tp; /* transaction pointer */ 2224 xfs_trans_t *tp; /* transaction pointer */
2236 struct xfs_dir3_icfree_hdr freehdr; 2225 struct xfs_dir3_icfree_hdr freehdr;
2237 2226
2238 dp = args->dp; 2227 dp = args->dp;
2239 mp = dp->i_mount;
2240 tp = args->trans; 2228 tp = args->trans;
2241 /* 2229 /*
2242 * Read the freespace block. 2230 * Read the freespace block.