From patchwork Tue May 19 13:51:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byongho Lee X-Patchwork-Id: 6438001 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 281B4C0432 for ; Tue, 19 May 2015 13:52:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4BE2201BC for ; Tue, 19 May 2015 13:52:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 00DAD2042A for ; Tue, 19 May 2015 13:52:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932805AbbESNwX (ORCPT ); Tue, 19 May 2015 09:52:23 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:36524 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932774AbbESNwU (ORCPT ); Tue, 19 May 2015 09:52:20 -0400 Received: by pdfh10 with SMTP id h10so26369664pdf.3 for ; Tue, 19 May 2015 06:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=Um2LJXUg2mjArRBiNku5H/7/G+Ss6n6u2oGfuEg9f0c=; b=nFakTRQNNLL/eOuKPEJDtQdoT1DiS2hIQ3643SQD6CMClS4cQt7+j2qCKHVb6ngAwr +WsEfFAzLnPOzMFU6wIR+wWzsAjPTJ7hpFuxG9GNkG6icKAjsF+a7aKDQn+fxfaTcMds 7Ynq2pKvlBmdH4VPYhr4vVpTvIG00IJbvX6EJZjBeTzOOcRqV9LbLxIxwe6+e+MmG+/Z o7qamRgq1bCHeP54dhJheLNBdQcEm7aIR4nYgh44l6IFpJdnW3Ewv0x2FZI+aO8SdY8R qDVVwh5FTKt0FQNIfFhr1JCa9OS9jD+TJdEEEop1WH7uOLx4NN8q1cwLQA9BcMEii+by 4/EQ== X-Received: by 10.68.218.9 with SMTP id pc9mr53687125pbc.2.1432043539708; Tue, 19 May 2015 06:52:19 -0700 (PDT) Received: from arch-nb.localdomain ([211.40.97.131]) by mx.google.com with ESMTPSA id da3sm13249640pdb.8.2015.05.19.06.52.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 May 2015 06:52:18 -0700 (PDT) From: Byongho Lee To: linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs: remove unused inode argument from uncompress_inline() Date: Tue, 19 May 2015 22:51:54 +0900 Message-Id: <1432043514-2254-1-git-send-email-bhlee.kernel@gmail.com> X-Mailer: git-send-email 2.4.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The inode argument is never used from the beginning, so remove it. --- fs/btrfs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0020b56..6abd9ae 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -6565,7 +6565,7 @@ static int merge_extent_mapping(struct extent_map_tree *em_tree, } static noinline int uncompress_inline(struct btrfs_path *path, - struct inode *inode, struct page *page, + struct page *page, size_t pg_offset, u64 extent_offset, struct btrfs_file_extent_item *item) { @@ -6761,8 +6761,7 @@ next: if (create == 0 && !PageUptodate(page)) { if (btrfs_file_extent_compression(leaf, item) != BTRFS_COMPRESS_NONE) { - ret = uncompress_inline(path, inode, page, - pg_offset, + ret = uncompress_inline(path, page, pg_offset, extent_offset, item); if (ret) { err = ret;