Re: fs bitmaps: find_first_one_bit

Matthew Wilcox (Matthew.Wilcox@genedata.com)
Tue, 24 Aug 1999 15:56:38 +0200


On Mon, Aug 23, 1999 at 11:45:11PM -0700, Ben Fennema wrote:
> I was hoping someone could comment on the correctness of this code for
> big endian and/or 64 bit machines.
>
> Under UDF the free block bitmaps have bits set to one for free blocks vs
> zero for ext2, so I can't use the current find_first_zero_bit macro's.

#include <linux/bitops.h>
ffs()

-- 
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/