Commit e1dc1c81 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds

rds: 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>
Cc: Andy Grover <andy.grover@oracle.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cd7e48c5
...@@ -284,7 +284,7 @@ void rds_cong_set_bit(struct rds_cong_map *map, __be16 port) ...@@ -284,7 +284,7 @@ void rds_cong_set_bit(struct rds_cong_map *map, __be16 port)
i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS;
off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS;
ext2_set_bit(off, (void *)map->m_page_addrs[i]); __set_bit_le(off, (void *)map->m_page_addrs[i]);
} }
void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port)
...@@ -298,7 +298,7 @@ void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) ...@@ -298,7 +298,7 @@ void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port)
i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS;
off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS;
ext2_clear_bit(off, (void *)map->m_page_addrs[i]); __clear_bit_le(off, (void *)map->m_page_addrs[i]);
} }
static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port)
...@@ -309,7 +309,7 @@ static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) ...@@ -309,7 +309,7 @@ static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port)
i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS;
off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS;
return ext2_test_bit(off, (void *)map->m_page_addrs[i]); return test_bit_le(off, (void *)map->m_page_addrs[i]);
} }
void rds_cong_add_socket(struct rds_sock *rs) void rds_cong_add_socket(struct rds_sock *rs)
......
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