Linux NFS development
 help / color / mirror / Atom feed
From: Weston Andros Adamson <dros@primarydata.com>
To: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: linux-nfs list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] NFS: Remove 2 unused variables
Date: Sun, 13 Jul 2014 19:43:07 -0400	[thread overview]
Message-ID: <A36A450A-B8FC-4F89-A765-09A756CB033F@primarydata.com> (raw)
In-Reply-To: <1405201064-45906-1-git-send-email-trond.myklebust@primarydata.com>

Thanks, I just noticed those late last week - they were on my todo list.

-dros


On Jul 12, 2014, at 5:37 PM, Trond Myklebust <trond.myklebust@primarydata.com> wrote:

> Cc: Weston Andros Adamson <dros@primarydata.com>
> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
> ---
> fs/nfs/direct.c | 2 --
> fs/nfs/write.c  | 2 --
> 2 files changed, 4 deletions(-)
> 
> diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
> index 8f98138cbc43..f11b9eed0de1 100644
> --- a/fs/nfs/direct.c
> +++ b/fs/nfs/direct.c
> @@ -756,7 +756,6 @@ static void nfs_direct_write_completion(struct nfs_pgio_header *hdr)
> 	spin_unlock(&dreq->lock);
> 
> 	while (!list_empty(&hdr->pages)) {
> -		bool do_destroy = true;
> 
> 		req = nfs_list_entry(hdr->pages.next);
> 		nfs_list_remove_request(req);
> @@ -765,7 +764,6 @@ static void nfs_direct_write_completion(struct nfs_pgio_header *hdr)
> 		case NFS_IOHDR_NEED_COMMIT:
> 			kref_get(&req->wb_kref);
> 			nfs_mark_request_commit(req, hdr->lseg, &cinfo);
> -			do_destroy = false;
> 		}
> 		nfs_unlock_and_release_request(req);
> 	}
> diff --git a/fs/nfs/write.c b/fs/nfs/write.c
> index bdc4db23951e..5e2f10304548 100644
> --- a/fs/nfs/write.c
> +++ b/fs/nfs/write.c
> @@ -868,7 +868,6 @@ static void nfs_write_completion(struct nfs_pgio_header *hdr)
> {
> 	struct nfs_commit_info cinfo;
> 	unsigned long bytes = 0;
> -	bool do_destroy;
> 
> 	if (test_bit(NFS_IOHDR_REDO, &hdr->flags))
> 		goto out;
> @@ -898,7 +897,6 @@ remove_req:
> next:
> 		nfs_unlock_request(req);
> 		nfs_end_page_writeback(req);
> -		do_destroy = !test_bit(NFS_IOHDR_NEED_COMMIT, &hdr->flags);
> 		nfs_release_request(req);
> 	}
> out:
> -- 
> 1.9.3
> 


      reply	other threads:[~2014-07-13 23:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12 21:37 [PATCH] NFS: Remove 2 unused variables Trond Myklebust
2014-07-13 23:43 ` Weston Andros Adamson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A36A450A-B8FC-4F89-A765-09A756CB033F@primarydata.com \
    --to=dros@primarydata.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@primarydata.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox