Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932610AbbERSxO (ORCPT ); Mon, 18 May 2015 14:53:14 -0400 Received: from mailrelay116.isp.belgacom.be ([195.238.20.143]:29980 "EHLO mailrelay116.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932583AbbERSxK (ORCPT ); Mon, 18 May 2015 14:53:10 -0400 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=Ax9Kd9og7W2htzcJF9odWb+87PP6pPoG1t8Q07ebhfo= c=1 sm=2 a=20KFwNOVAAAA:8 a=DBjeO4FEuH0H7ZrqUhcA:9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CgDgAHM1pV/4FIiNlcgxCBMrJrCwUBgQSYToE5PRABAQEBAQEBgQpBA4QMLyOBGjeIMAHZEoYWiikdhBcFnV+NBYoHI2FmAYIyPDGCRgEBAQ From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Fabian Frederick , Steven Whitehouse , Bob Peterson , cluster-devel@redhat.com Subject: [PATCH V2 linux-next] gfs2: fix shadow warning in gfs2_rbm_find() Date: Mon, 18 May 2015 20:53:04 +0200 Message-Id: <1431975184-1096-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.4.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 35 bi was already declared and initialized globally in gfs2_rbm_find() Suggested-by: Bob Peterson Signed-off-by: Fabian Frederick --- V2: use global bi instead of new call to rbm_bi() on local variable. fs/gfs2/rgrp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 900e515..cd53d6e 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -1711,10 +1711,8 @@ static int gfs2_rbm_find(struct gfs2_rbm *rbm, u8 state, u32 *minext, return ret; bitmap_full: /* Mark bitmap as full and fall through */ - if ((state == GFS2_BLKST_FREE) && initial_offset == 0) { - struct gfs2_bitmap *bi = rbm_bi(rbm); + if ((state == GFS2_BLKST_FREE) && initial_offset == 0) set_bit(GBF_FULL, &bi->bi_flags); - } next_bitmap: /* Find next bitmap in the rgrp */ rbm->offset = 0; -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/