diff options
| author | Joanne Koong <joannelkoong@gmail.com> | 2025-11-11 11:36:58 -0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-25 10:22:10 +0100 |
| commit | b56c1c54f225ca02d88ec562f017be23429bf5b2 (patch) | |
| tree | fea45515327234b0ae493c4e7ee2ece4185ba6de /fs/backing-file.c | |
| parent | fed9c62d28b726dad70cc03fd28ffd700b59c741 (diff) | |
iomap: use find_next_bit() for uptodate bitmap scanning
Use find_next_bit()/find_next_zero_bit() for iomap uptodate bitmap
scanning. This uses __ffs() internally and is more efficient for
finding the next uptodate or non-uptodate bit than iterating through the
the bitmap range testing every bit.
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://patch.msgid.link/20251111193658.3495942-10-joannelkoong@gmail.com
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/backing-file.c')
0 files changed, 0 insertions, 0 deletions