]> www.infradead.org Git - users/hch/misc.git/commit
nilfs2: use the BITS_PER_LONG macro
authorRyusuke Konishi <konishi.ryusuke@gmail.com>
Mon, 26 Aug 2024 17:41:10 +0000 (02:41 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:42 +0000 (20:43 -0700)
commit21176c0ae4ac9ab5ca7e1b7e6c234dee2a0022f0
tree0225b2ec7cf428730b5fc280d132d226e68176d8
parent9abca1a71c0e5f78e7ce91af8ad03e8d9893dc54
nilfs2: use the BITS_PER_LONG macro

The macros NILFS_BMAP_KEY_BIT and NILFS_BMAP_NEW_PTR_INIT calculate,
within their definitions, the number of bits in an unsigned long variable.
Use the BITS_PER_LONG macro to make them simpler.

Link: https://lkml.kernel.org/r/20240826174116.5008-3-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Huang Xiaojia <huangxiaojia2@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/bmap.h