btrfs: raid56: Remove unused variant in lock_stripe_add
diff mbox

Message ID 20170116022306.32446-1-quwenruo@cn.fujitsu.com
State New
Headers show

Commit Message

Qu Wenruo Jan. 16, 2017, 2:23 a.m. UTC
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(-)

Comments

David Sterba Jan. 20, 2017, 6:24 p.m. UTC | #1
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Qu Wenruo Jan. 23, 2017, 7:13 a.m. UTC | #2
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


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

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);