* [PATCH resend 0/6] use little-endian bitops properly
@ 2011-06-26 5:57 Akinobu Mita
2011-06-26 5:57 ` [PATCH resend 3/6] md: use proper little-endian bitops Akinobu Mita
0 siblings, 1 reply; 3+ messages in thread
From: Akinobu Mita @ 2011-06-26 5:57 UTC (permalink / raw)
To: linux-kernel, akpm
Cc: Akinobu Mita, Theodore Ts'o, Andreas Dilger, linux-ext4,
Alasdair Kergon, dm-devel, NeilBrown, linux-raid, reiserfs-devel,
Joel Becker, Mark Fasheh, ocfs2-devel
All patches in this patch set were sent before. Individual patches
improve little-endian bitops usage in several places.
Akinobu Mita (6):
ext4: use proper little-endian bitops
dm: use use proper little-endian bitops
md: use proper little-endian bitops
reiserfs: use proper little-endian bitops
reiserfs: use hweight_long()
ocfs2: avoid unaligned access to dqc_bitmap
drivers/md/bitmap.c | 4 +-
drivers/md/dm-log.c | 9 +++----
fs/ext4/ext4.h | 7 +++--
fs/ext4/ialloc.c | 4 +-
fs/ocfs2/ocfs2.h | 47 +++++++++++++++++++++++++++++++++++++++++++
fs/ocfs2/quota_local.c | 10 ++++----
fs/reiserfs/bitmap.c | 8 +-----
fs/reiserfs/resize.c | 6 ++--
include/linux/reiserfs_fs.h | 2 +
9 files changed, 71 insertions(+), 26 deletions(-)
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: linux-ext4@vger.kernel.org
Cc: Alasdair Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Cc: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Cc: reiserfs-devel@vger.kernel.org
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: ocfs2-devel@oss.oracle.com
--
1.7.4.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH resend 3/6] md: use proper little-endian bitops
2011-06-26 5:57 [PATCH resend 0/6] use little-endian bitops properly Akinobu Mita
@ 2011-06-26 5:57 ` Akinobu Mita
2011-06-28 6:43 ` NeilBrown
0 siblings, 1 reply; 3+ messages in thread
From: Akinobu Mita @ 2011-06-26 5:57 UTC (permalink / raw)
To: linux-kernel, akpm; +Cc: Akinobu Mita, NeilBrown, linux-raid
Using __test_and_{set,clear}_bit_le() with ignoring its return value
can be replaced with __{set,clear}_bit_le().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
---
drivers/md/bitmap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index 574b09a..870a7fc 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -932,7 +932,7 @@ static void bitmap_file_set_bit(struct bitmap *bitmap, sector_t block)
if (bitmap->flags & BITMAP_HOSTENDIAN)
set_bit(bit, kaddr);
else
- __test_and_set_bit_le(bit, kaddr);
+ __set_bit_le(bit, kaddr);
kunmap_atomic(kaddr, KM_USER0);
PRINTK("set file bit %lu page %lu\n", bit, page->index);
}
@@ -1304,7 +1304,7 @@ void bitmap_daemon_work(mddev_t *mddev)
clear_bit(file_page_offset(bitmap, j),
paddr);
else
- __test_and_clear_bit_le(file_page_offset(bitmap, j),
+ __clear_bit_le(file_page_offset(bitmap, j),
paddr);
kunmap_atomic(paddr, KM_USER0);
} else
--
1.7.4.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH resend 3/6] md: use proper little-endian bitops
2011-06-26 5:57 ` [PATCH resend 3/6] md: use proper little-endian bitops Akinobu Mita
@ 2011-06-28 6:43 ` NeilBrown
0 siblings, 0 replies; 3+ messages in thread
From: NeilBrown @ 2011-06-28 6:43 UTC (permalink / raw)
To: Akinobu Mita; +Cc: linux-kernel, akpm, linux-raid
On Sun, 26 Jun 2011 14:57:53 +0900 Akinobu Mita <akinobu.mita@gmail.com>
wrote:
> Using __test_and_{set,clear}_bit_le() with ignoring its return value
> can be replaced with __{set,clear}_bit_le().
>
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
> Cc: NeilBrown <neilb@suse.de>
> Cc: linux-raid@vger.kernel.org
> ---
> drivers/md/bitmap.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
> index 574b09a..870a7fc 100644
> --- a/drivers/md/bitmap.c
> +++ b/drivers/md/bitmap.c
> @@ -932,7 +932,7 @@ static void bitmap_file_set_bit(struct bitmap *bitmap, sector_t block)
> if (bitmap->flags & BITMAP_HOSTENDIAN)
> set_bit(bit, kaddr);
> else
> - __test_and_set_bit_le(bit, kaddr);
> + __set_bit_le(bit, kaddr);
> kunmap_atomic(kaddr, KM_USER0);
> PRINTK("set file bit %lu page %lu\n", bit, page->index);
> }
> @@ -1304,7 +1304,7 @@ void bitmap_daemon_work(mddev_t *mddev)
> clear_bit(file_page_offset(bitmap, j),
> paddr);
> else
> - __test_and_clear_bit_le(file_page_offset(bitmap, j),
> + __clear_bit_le(file_page_offset(bitmap, j),
> paddr);
> kunmap_atomic(paddr, KM_USER0);
> } else
Thanks. I've applied this one to my 'md' tree.
NeilBrown
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-28 6:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-26 5:57 [PATCH resend 0/6] use little-endian bitops properly Akinobu Mita
2011-06-26 5:57 ` [PATCH resend 3/6] md: use proper little-endian bitops Akinobu Mita
2011-06-28 6:43 ` NeilBrown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).