* [PATCH] btrfs: raid56: Remove unused variant in lock_stripe_add
@ 2017-01-16 2:23 Qu Wenruo
2017-01-20 18:24 ` David Sterba
0 siblings, 1 reply; 3+ messages in thread
From: Qu Wenruo @ 2017-01-16 2:23 UTC (permalink / raw)
To: linux-btrfs
Variant 'walk' in lock_stripe_add() is never used.
Remove it.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
fs/btrfs/raid56.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index 453eefdcb591..b8ffd9ea7499 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -693,11 +693,9 @@ static noinline int lock_stripe_add(struct btrfs_raid_bio *rbio)
struct btrfs_raid_bio *freeit = NULL;
struct btrfs_raid_bio *cache_drop = NULL;
int ret = 0;
- int walk = 0;
spin_lock_irqsave(&h->lock, flags);
list_for_each_entry(cur, &h->hash_list, hash_list) {
- walk++;
if (cur->bbio->raid_map[0] == rbio->bbio->raid_map[0]) {
spin_lock(&cur->bio_list_lock);
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: raid56: Remove unused variant in lock_stripe_add
2017-01-16 2:23 [PATCH] btrfs: raid56: Remove unused variant in lock_stripe_add Qu Wenruo
@ 2017-01-20 18:24 ` David Sterba
2017-01-23 7:13 ` Qu Wenruo
0 siblings, 1 reply; 3+ messages in thread
From: David Sterba @ 2017-01-20 18:24 UTC (permalink / raw)
To: Qu Wenruo; +Cc: linux-btrfs
On Mon, Jan 16, 2017 at 10:23:06AM +0800, Qu Wenruo wrote:
> Variant 'walk' in lock_stripe_add() is never used.
> Remove it.
>
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Added to 4.11 queue, thaks. Changelog and subject edited.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: raid56: Remove unused variant in lock_stripe_add
2017-01-20 18:24 ` David Sterba
@ 2017-01-23 7:13 ` Qu Wenruo
0 siblings, 0 replies; 3+ messages in thread
From: Qu Wenruo @ 2017-01-23 7:13 UTC (permalink / raw)
To: dsterba, linux-btrfs
At 01/21/2017 02:24 AM, David Sterba wrote:
> On Mon, Jan 16, 2017 at 10:23:06AM +0800, Qu Wenruo wrote:
>> Variant 'walk' in lock_stripe_add() is never used.
>> Remove it.
>>
>> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
>
> Added to 4.11 queue, thaks. Changelog and subject edited.
>
>
Thanks for the kind info.
Qu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-23 7:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-16 2:23 [PATCH] btrfs: raid56: Remove unused variant in lock_stripe_add Qu Wenruo
2017-01-20 18:24 ` David Sterba
2017-01-23 7:13 ` Qu Wenruo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.