Message ID | 20170116022306.32446-1-quwenruo@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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
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
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);
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(-)