]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/xfs/xfs_buf_item.c
Merge branch 'locks' of git://linux-nfs.org/~bfields/linux
[mv-sheeva.git] / fs / xfs / xfs_buf_item.c
index 6c1bddc04e316557e47d9cf148468791c9b23e61..b0667cb27d6652be3db6731edb646da03eb7584c 100644 (file)
@@ -580,8 +580,8 @@ xfs_buf_item_unlock(
         * If the buf item isn't tracking any data, free it.
         * Otherwise, if XFS_BLI_HOLD is set clear it.
         */
-       if (xfs_count_bits(bip->bli_format.blf_data_map,
-                             bip->bli_format.blf_map_size, 0) == 0) {
+       if (xfs_bitmap_empty(bip->bli_format.blf_data_map,
+                            bip->bli_format.blf_map_size)) {
                xfs_buf_item_relse(bp);
        } else if (hold) {
                bip->bli_flags &= ~XFS_BLI_HOLD;