commit | 5e19b013f55a884c59a14391b22138899d1cc4cc | [log] [tgz] |
---|---|---|
author | Michal Nazarewicz <[email protected]> | Fri Dec 12 16:54:45 2014 -0800 |
committer | Linus Torvalds <[email protected]> | Sat Dec 13 12:42:46 2014 -0800 |
tree | 9bf703aa3539ddf0e2b9767787f112d04559ed84 | |
parent | c8475d144abb1e62958cc5ec281d2a9e161c1946 [diff] |
lib: bitmap: add alignment offset for bitmap_find_next_zero_area() Add a bitmap_find_next_zero_area_off() function which works like bitmap_find_next_zero_area() function except it allows an offset to be specified when alignment is checked. This lets caller request a bit such that its number plus the offset is aligned according to the mask. [[email protected]: Retrieved from https://patchwork.linuxtv.org/patch/6254/ and updated documentation] Signed-off-by: Michal Nazarewicz <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Gregory Fong <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Kukjin Kim <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Laura Abbott <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>