diff options
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 6c1bddc04e31..b0667cb27d66 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c | |||
@@ -580,8 +580,8 @@ xfs_buf_item_unlock( | |||
580 | * If the buf item isn't tracking any data, free it. | 580 | * If the buf item isn't tracking any data, free it. |
581 | * Otherwise, if XFS_BLI_HOLD is set clear it. | 581 | * Otherwise, if XFS_BLI_HOLD is set clear it. |
582 | */ | 582 | */ |
583 | if (xfs_count_bits(bip->bli_format.blf_data_map, | 583 | if (xfs_bitmap_empty(bip->bli_format.blf_data_map, |
584 | bip->bli_format.blf_map_size, 0) == 0) { | 584 | bip->bli_format.blf_map_size)) { |
585 | xfs_buf_item_relse(bp); | 585 | xfs_buf_item_relse(bp); |
586 | } else if (hold) { | 586 | } else if (hold) { |
587 | bip->bli_flags &= ~XFS_BLI_HOLD; | 587 | bip->bli_flags &= ~XFS_BLI_HOLD; |