From: Fred Isaman Subject: [PATCH 07/24] pnfs: filelayout: remove some dead code from filelayout_commit Date: Tue, 8 Jun 2010 00:19:04 -0400 Message-ID: <1275970761-31806-8-git-send-email-iisaman@netapp.com> References: <1275970761-31806-1-git-send-email-iisaman@netapp.com> <1275970761-31806-2-git-send-email-iisaman@netapp.com> <1275970761-31806-3-git-send-email-iisaman@netapp.com> <1275970761-31806-4-git-send-email-iisaman@netapp.com> <1275970761-31806-5-git-send-email-iisaman@netapp.com> <1275970761-31806-6-git-send-email-iisaman@netapp.com> <1275970761-31806-7-git-send-email-iisaman@netapp.com> To: linux-nfs@vger.kernel.org Return-path: Received: from mx2.netapp.com ([216.240.18.37]:60833 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751629Ab0FHETq (ORCPT ); Tue, 8 Jun 2010 00:19:46 -0400 Received: from localhost.localdomain (navitha-lxp.hq.netapp.com [10.58.53.227] (may be forged)) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id o584JOPw014203 for ; Mon, 7 Jun 2010 21:19:29 -0700 (PDT) In-Reply-To: <1275970761-31806-7-git-send-email-iisaman@netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: Signed-off-by: Fred Isaman --- fs/nfs/nfs4filelayout.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index 2ffca74..c15b90a 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c @@ -562,7 +562,6 @@ filelayout_commit(struct pnfs_layout_type *layoutid, int sync, struct nfs_page *req, *reqt; struct list_head *pos, *tmp, head, head2; loff_t file_offset, comp_offset; - size_t stripesz, cbytes; enum pnfs_try_status trypnfs = PNFS_ATTEMPTED; u32 idx1, idx2; @@ -577,9 +576,6 @@ filelayout_commit(struct pnfs_layout_type *layoutid, int sync, return PNFS_NOT_ATTEMPTED; } - stripesz = filelayout_get_stripesize(layoutid); - dprintk("%s stripesize %Zd\n", __func__, stripesz); - INIT_LIST_HEAD(&head); INIT_LIST_HEAD(&head2); list_add(&head, &data->pages); @@ -587,7 +583,6 @@ filelayout_commit(struct pnfs_layout_type *layoutid, int sync, /* COMMIT to each Data Server */ while (!list_empty(&head)) { - cbytes = 0; req = nfs_list_entry(head.next); file_offset = (loff_t)req->wb_index << PAGE_CACHE_SHIFT; @@ -613,7 +608,6 @@ filelayout_commit(struct pnfs_layout_type *layoutid, int sync, if (idx1 == idx2) { nfs_list_remove_request(reqt); nfs_list_add_request(reqt, &head2); - cbytes += reqt->wb_bytes; } } @@ -637,8 +631,8 @@ filelayout_commit(struct pnfs_layout_type *layoutid, int sync, dsdata->fldata.ds_nfs_client = ds->ds_clp; dsdata->args.fh = nfs4_fl_select_ds_fh(nfslay, idx1); - dprintk("%s: Initiating commit: %Zu@%llu USE DS:\n", - __func__, cbytes, file_offset); + dprintk("%s: Initiating commit: %llu USE DS:\n", + __func__, file_offset); print_ds(ds); /* Send COMMIT to data server */ -- 1.6.6.1