diff options
Diffstat (limited to 'fs/xfs/xfs_dir2_block.c')
-rw-r--r-- | fs/xfs/xfs_dir2_block.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c index 9d7438bba30d..3accc1dcd6c9 100644 --- a/fs/xfs/xfs_dir2_block.c +++ b/fs/xfs/xfs_dir2_block.c | |||
@@ -282,8 +282,7 @@ xfs_dir2_block_addname( | |||
282 | * This needs to happen before the next call to use_free. | 282 | * This needs to happen before the next call to use_free. |
283 | */ | 283 | */ |
284 | if (needscan) { | 284 | if (needscan) { |
285 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, | 285 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, &needlog); |
286 | &needlog, NULL); | ||
287 | needscan = 0; | 286 | needscan = 0; |
288 | } | 287 | } |
289 | } | 288 | } |
@@ -333,7 +332,7 @@ xfs_dir2_block_addname( | |||
333 | */ | 332 | */ |
334 | if (needscan) { | 333 | if (needscan) { |
335 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, | 334 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, |
336 | &needlog, NULL); | 335 | &needlog); |
337 | needscan = 0; | 336 | needscan = 0; |
338 | } | 337 | } |
339 | /* | 338 | /* |
@@ -418,8 +417,7 @@ xfs_dir2_block_addname( | |||
418 | * Clean up the bestfree array and log the header, tail, and entry. | 417 | * Clean up the bestfree array and log the header, tail, and entry. |
419 | */ | 418 | */ |
420 | if (needscan) | 419 | if (needscan) |
421 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, &needlog, | 420 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, &needlog); |
422 | NULL); | ||
423 | if (needlog) | 421 | if (needlog) |
424 | xfs_dir2_data_log_header(tp, bp); | 422 | xfs_dir2_data_log_header(tp, bp); |
425 | xfs_dir2_block_log_tail(tp, bp); | 423 | xfs_dir2_block_log_tail(tp, bp); |
@@ -798,8 +796,7 @@ xfs_dir2_block_removename( | |||
798 | * Fix up bestfree, log the header if necessary. | 796 | * Fix up bestfree, log the header if necessary. |
799 | */ | 797 | */ |
800 | if (needscan) | 798 | if (needscan) |
801 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, &needlog, | 799 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, &needlog); |
802 | NULL); | ||
803 | if (needlog) | 800 | if (needlog) |
804 | xfs_dir2_data_log_header(tp, bp); | 801 | xfs_dir2_data_log_header(tp, bp); |
805 | xfs_dir2_data_check(dp, bp); | 802 | xfs_dir2_data_check(dp, bp); |
@@ -996,8 +993,7 @@ xfs_dir2_leaf_to_block( | |||
996 | * Scan the bestfree if we need it and log the data block header. | 993 | * Scan the bestfree if we need it and log the data block header. |
997 | */ | 994 | */ |
998 | if (needscan) | 995 | if (needscan) |
999 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, &needlog, | 996 | xfs_dir2_data_freescan(mp, (xfs_dir2_data_t *)block, &needlog); |
1000 | NULL); | ||
1001 | if (needlog) | 997 | if (needlog) |
1002 | xfs_dir2_data_log_header(tp, dbp); | 998 | xfs_dir2_data_log_header(tp, dbp); |
1003 | /* | 999 | /* |