Skip to content

Introduce bitmap_size()

Christophe JAILLET dm-devel kernel-janitors linux-s390 lkml ntfs3 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4s390/cio: Rename bitmap_size() as idset_bitmap_size()drivers/s390/cio/idset.c+4 -46 replies
2/4fs/ntfs3: Rename bitmap_size() as ntfs3_bitmap_size()fs/ntfs3/bitmap.c fs/ntfs3/fsntfs.c fs/ntfs3/index.c +2 more+8 -83 replies
3/4bitmap: Introduce bitmap_size()drivers/md/dm-clone-metadata.c include/linux/bitmap.h lib/math/prime_numbers.c+6 -76 replies
4/4bitmap: Use bitmap_size()include/linux/bitmap.h+3 -60 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoYury Norov
1/4
2/4A-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Introduce bitmap_size()

This serie introduces bitmap_size() which returns the size, in bytes, of a bitmap. Such a function is useful to simplify some drivers that use vmalloc() or other functions to allocate some butmaps.
It also hides some implementation details about how bitmaps are stored (array of longs)

Before introducing this function in patch 3, patch 1 and 2 rename some functions with the same name but with different meaning.

Finaly, patch 4 makes use of the new function in bitmap.h.

Other follow-up patches to simplify some drivers will be proposed later if/when this serie is merged.

Christophe JAILLET (4):
s390/cio: Rename bitmap_size() as idset_bitmap_size() fs/ntfs3: Rename bitmap_size() as ntfs3_bitmap_size()
bitmap: Introduce bitmap_size()
bitmap: Use bitmap_size()

 drivers/md/dm-clone-metadata.c |  5 -----
 drivers/s390/cio/idset.c       |  8 ++++----
 fs/ntfs3/bitmap.c              |  4 ++--
 fs/ntfs3/fsntfs.c              |  2 +-
 fs/ntfs3/index.c               |  6 +++---
 fs/ntfs3/ntfs_fs.h             |  2 +-
 fs/ntfs3/super.c               |  2 +-
 include/linux/bitmap.h         | 15 +++++++++------
 lib/math/prime_numbers.c       |  2 --
 9 files changed, 21 insertions(+), 25 deletions(-)
Signature · 1 line
2.34.1