diff options
| author | Yury Norov <[email protected]> | 2022-09-18 03:07:11 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2022-09-26 19:19:12 +0000 |
| commit | 70a1cb106d9410f1f37e0261728e46722b74c29f (patch) | |
| tree | 8ea8f66801464c3a08292adbc1c8096cd8047136 /fs/ntfs3/bitmap.c | |
| parent | tools: sync find_bit() implementation (diff) | |
| download | kernel-70a1cb106d9410f1f37e0261728e46722b74c29f.tar.gz kernel-70a1cb106d9410f1f37e0261728e46722b74c29f.zip | |
lib/bitmap: don't call __bitmap_weight() in kernel code
__bitmap_weight() is not to be used directly in the kernel code because
it's a helper for bitmap_weight(). Switch everything to bitmap_weight().
Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'fs/ntfs3/bitmap.c')
| -rw-r--r-- | fs/ntfs3/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs3/bitmap.c b/fs/ntfs3/bitmap.c index 5d44ceac855b..e92bbd754365 100644 --- a/fs/ntfs3/bitmap.c +++ b/fs/ntfs3/bitmap.c @@ -560,7 +560,7 @@ static int wnd_rescan(struct wnd_bitmap *wnd) buf = (ulong *)bh->b_data; - used = __bitmap_weight(buf, wbits); + used = bitmap_weight(buf, wbits); if (used < wbits) { frb = wbits - used; wnd->free_bits[iw] = frb; @@ -1364,7 +1364,7 @@ int wnd_extend(struct wnd_bitmap *wnd, size_t new_bits) buf = (ulong *)bh->b_data; __bitmap_clear(buf, b0, blocksize * 8 - b0); - frb = wbits - __bitmap_weight(buf, wbits); + frb = wbits - bitmap_weight(buf, wbits); wnd->total_zeroes += frb - wnd->free_bits[iw]; wnd->free_bits[iw] = frb; |
