Commit 9ad1e1e4 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds

udf: use little-endian bitops

As a preparation for removing ext2 non-atomic bit operations from
asm/bitops.h.  This converts ext2 non-atomic bit operations to
little-endian bit operations.
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Acked-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b9b9144a
...@@ -27,11 +27,10 @@ ...@@ -27,11 +27,10 @@
#include "udf_i.h" #include "udf_i.h"
#include "udf_sb.h" #include "udf_sb.h"
#define udf_clear_bit(nr, addr) ext2_clear_bit(nr, addr) #define udf_clear_bit __test_and_clear_bit_le
#define udf_set_bit(nr, addr) ext2_set_bit(nr, addr) #define udf_set_bit __test_and_set_bit_le
#define udf_test_bit(nr, addr) ext2_test_bit(nr, addr) #define udf_test_bit test_bit_le
#define udf_find_next_one_bit(addr, size, offset) \ #define udf_find_next_one_bit find_next_bit_le
ext2_find_next_bit((unsigned long *)(addr), size, offset)
static int read_block_bitmap(struct super_block *sb, static int read_block_bitmap(struct super_block *sb,
struct udf_bitmap *bitmap, unsigned int block, struct udf_bitmap *bitmap, unsigned int block,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment