From patchwork Sun Jul 31 20:34:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salah Triki X-Patchwork-Id: 9253519 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 539006089F for ; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42FF028481 for ; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37F9B28490; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAD6428481 for ; Sun, 31 Jul 2016 20:35:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbcGaUfY (ORCPT ); Sun, 31 Jul 2016 16:35:24 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36537 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429AbcGaUex (ORCPT ); Sun, 31 Jul 2016 16:34:53 -0400 Received: by mail-wm0-f66.google.com with SMTP id x83so23541031wma.3; Sun, 31 Jul 2016 13:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=IsQ9b8njD+WAd6g3C53mGbI3i+7Lj7p2+U6TI1B4c2U=; b=0KB0nqgOAnCJtEnnp44PcGVkeIG36UQOCMT6WrfOzdguCbBq0yMMzhSWMo7kNAo9Ip iwBrAb1zy6yJCKmosby1qaTSn6XIYPQ/hkKO/K+cx6bMV+t3g0068CtHH7OBFoiWy0Ez apZs6/lJTVLNOMgcF3a7A3tCrxoAVZ/zfeHabP74vaw5sBaGuYN4gsv89OhXLf5SY2X1 prEUmXcw47n/y6k2zPaHXWO4LXw7MIkHLljvCoYYgD/2bEnbM9Gj1RxoQ4lTg3bz/wie YqgWa1Rd5OVIrJsoAww9gc/V+4cz7t025K9R7UaZBgVIrL6arOt/64BKdFgxifHbRveA 70RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=IsQ9b8njD+WAd6g3C53mGbI3i+7Lj7p2+U6TI1B4c2U=; b=a2arTjL1962lkQoz8YHY0REVJt++ZhbCjCfD8HM+M7Tfgf57+FTGJfdUgKmdKrsXh6 BHGVTB6VGdl22oGbyUqNgSw/r9ljonB/N5jcqvmox/o7j7h3WJYhRJy6fBSZr9mVD48N 4T+wpYYspVZaJ7hx2fvbA6VO0VDRnh8Mj3+LZBsDXhcGc90lmf3MAA3nMo6TbSuK07Vb OW/2NtjtBkcL7pet58J9gv3K2fY1AbKm9/9M6+8H8FKarADfGT9MUhvHpfgn1+7JMUFO 17eyT2txvhm6HchKzFTtDpKwUtMPPmOOyjMNXKxG4v9HpONQOmGJygCCmodjcHPe06HT teQg== X-Gm-Message-State: AEkoouuVe3kv6BLrE+wue5XaI1Rmyh2jPavOjEBzyLDkxOZLTuDGbVwnbnpdqc8jon9JZg== X-Received: by 10.28.166.140 with SMTP id p134mr10102750wme.21.1469997291456; Sun, 31 Jul 2016 13:34:51 -0700 (PDT) Received: from localhost.localdomain ([160.156.220.249]) by smtp.gmail.com with ESMTPSA id v203sm13608936wmv.2.2016.07.31.13.34.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Jul 2016 13:34:50 -0700 (PDT) From: Salah Triki To: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, luisbg@osg.samsung.com Cc: Salah Triki , mhocko@suse.com, vdavydov@virtuozzo.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] fs: befs: remove unnecessary *befs_sb variable Date: Sun, 31 Jul 2016 21:34:29 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove *befs_sb and just call BEFS_SB(sb) directly, since the returned value by this function is only used once. Signed-off-by: Salah Triki Acked-by: Luis de Bethencourt --- fs/befs/datastream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c index b68b6f9..343123c 100644 --- a/fs/befs/datastream.c +++ b/fs/befs/datastream.c @@ -422,10 +422,9 @@ befs_find_brun_dblindirect(struct super_block *sb, struct buffer_head *indir_block; befs_block_run indir_run; befs_disk_inode_addr *iaddr_array; - struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_blocknr_t indir_start_blk = - data->max_indirect_range >> befs_sb->block_shift; + data->max_indirect_range >> BEFS_SB(sb)->block_shift; off_t dbl_indir_off = blockno - indir_start_blk;