diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2_leaf.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2_leaf.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2_leaf.c b/fs/xfs/libxfs/xfs_dir2_leaf.c index a19174eb3cb2..e333fa1257c5 100644 --- a/fs/xfs/libxfs/xfs_dir2_leaf.c +++ b/fs/xfs/libxfs/xfs_dir2_leaf.c | |||
@@ -384,7 +384,6 @@ xfs_dir2_block_to_leaf( | |||
384 | xfs_dir2_db_t ldb; /* leaf block's bno */ | 384 | xfs_dir2_db_t ldb; /* leaf block's bno */ |
385 | xfs_dir2_leaf_t *leaf; /* leaf structure */ | 385 | xfs_dir2_leaf_t *leaf; /* leaf structure */ |
386 | xfs_dir2_leaf_tail_t *ltp; /* leaf's tail */ | 386 | xfs_dir2_leaf_tail_t *ltp; /* leaf's tail */ |
387 | xfs_mount_t *mp; /* filesystem mount point */ | ||
388 | int needlog; /* need to log block header */ | 387 | int needlog; /* need to log block header */ |
389 | int needscan; /* need to rescan bestfree */ | 388 | int needscan; /* need to rescan bestfree */ |
390 | xfs_trans_t *tp; /* transaction pointer */ | 389 | xfs_trans_t *tp; /* transaction pointer */ |
@@ -395,7 +394,6 @@ xfs_dir2_block_to_leaf( | |||
395 | trace_xfs_dir2_block_to_leaf(args); | 394 | trace_xfs_dir2_block_to_leaf(args); |
396 | 395 | ||
397 | dp = args->dp; | 396 | dp = args->dp; |
398 | mp = dp->i_mount; | ||
399 | tp = args->trans; | 397 | tp = args->trans; |
400 | /* | 398 | /* |
401 | * Add the leaf block to the inode. | 399 | * Add the leaf block to the inode. |
@@ -626,7 +624,6 @@ xfs_dir2_leaf_addname( | |||
626 | int lfloghigh; /* high leaf logging index */ | 624 | int lfloghigh; /* high leaf logging index */ |
627 | int lowstale; /* index of prev stale leaf */ | 625 | int lowstale; /* index of prev stale leaf */ |
628 | xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */ | 626 | xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */ |
629 | xfs_mount_t *mp; /* filesystem mount point */ | ||
630 | int needbytes; /* leaf block bytes needed */ | 627 | int needbytes; /* leaf block bytes needed */ |
631 | int needlog; /* need to log data header */ | 628 | int needlog; /* need to log data header */ |
632 | int needscan; /* need to rescan data free */ | 629 | int needscan; /* need to rescan data free */ |
@@ -641,7 +638,6 @@ xfs_dir2_leaf_addname( | |||
641 | 638 | ||
642 | dp = args->dp; | 639 | dp = args->dp; |
643 | tp = args->trans; | 640 | tp = args->trans; |
644 | mp = dp->i_mount; | ||
645 | 641 | ||
646 | error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); | 642 | error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); |
647 | if (error) | 643 | if (error) |
@@ -1356,11 +1352,9 @@ xfs_dir2_leaf_removename( | |||
1356 | xfs_dir2_leaf_t *leaf; /* leaf structure */ | 1352 | xfs_dir2_leaf_t *leaf; /* leaf structure */ |
1357 | xfs_dir2_leaf_entry_t *lep; /* leaf entry */ | 1353 | xfs_dir2_leaf_entry_t *lep; /* leaf entry */ |
1358 | xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ | 1354 | xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ |
1359 | xfs_mount_t *mp; /* filesystem mount point */ | ||
1360 | int needlog; /* need to log data header */ | 1355 | int needlog; /* need to log data header */ |
1361 | int needscan; /* need to rescan data frees */ | 1356 | int needscan; /* need to rescan data frees */ |
1362 | xfs_dir2_data_off_t oldbest; /* old value of best free */ | 1357 | xfs_dir2_data_off_t oldbest; /* old value of best free */ |
1363 | xfs_trans_t *tp; /* transaction pointer */ | ||
1364 | struct xfs_dir2_data_free *bf; /* bestfree table */ | 1358 | struct xfs_dir2_data_free *bf; /* bestfree table */ |
1365 | struct xfs_dir2_leaf_entry *ents; | 1359 | struct xfs_dir2_leaf_entry *ents; |
1366 | struct xfs_dir3_icleaf_hdr leafhdr; | 1360 | struct xfs_dir3_icleaf_hdr leafhdr; |
@@ -1374,8 +1368,6 @@ xfs_dir2_leaf_removename( | |||
1374 | return error; | 1368 | return error; |
1375 | } | 1369 | } |
1376 | dp = args->dp; | 1370 | dp = args->dp; |
1377 | tp = args->trans; | ||
1378 | mp = dp->i_mount; | ||
1379 | leaf = lbp->b_addr; | 1371 | leaf = lbp->b_addr; |
1380 | hdr = dbp->b_addr; | 1372 | hdr = dbp->b_addr; |
1381 | xfs_dir3_data_check(dp, dbp); | 1373 | xfs_dir3_data_check(dp, dbp); |
@@ -1607,11 +1599,9 @@ xfs_dir2_leaf_trim_data( | |||
1607 | int error; /* error return value */ | 1599 | int error; /* error return value */ |
1608 | xfs_dir2_leaf_t *leaf; /* leaf structure */ | 1600 | xfs_dir2_leaf_t *leaf; /* leaf structure */ |
1609 | xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ | 1601 | xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ |
1610 | xfs_mount_t *mp; /* filesystem mount point */ | ||
1611 | xfs_trans_t *tp; /* transaction pointer */ | 1602 | xfs_trans_t *tp; /* transaction pointer */ |
1612 | 1603 | ||
1613 | dp = args->dp; | 1604 | dp = args->dp; |
1614 | mp = dp->i_mount; | ||
1615 | tp = args->trans; | 1605 | tp = args->trans; |
1616 | /* | 1606 | /* |
1617 | * Read the offending data block. We need its buffer. | 1607 | * Read the offending data block. We need its buffer. |