public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@citi.umich.edu>
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: NFS list <linux-nfs@vger.kernel.org>,
	pNFS Mailing List <pnfs@linux-nfs.org>
Subject: Re: [PATCH 01/12] nfsd: Remove nfsfh.h dependency on sunrpc
Date: Fri, 4 Dec 2009 20:01:02 -0500	[thread overview]
Message-ID: <20091205010102.GD22497@fieldses.org> (raw)
In-Reply-To: <1259864884-4661-1-git-send-email-bharrosh@panasas.com>

On Thu, Dec 03, 2009 at 08:28:04PM +0200, Boaz Harrosh wrote:
> linux/nfsd/nfsfh.h defines some low level types which
> are needed by exportfs and though by filesystems.
> 
> In the file, fh_lock() uses the sunrpc dprint facility which
> might cause a dependency of exportfs (and filesystems) on
> sunrpc which is unwanted / unexpected.
> 
> Remove the debug-print from fh_lock() and avoid this dependency.

"might cause a dependency" is a little vague.

Applied but just with the comment that we don't seem to use the dprintk
anyway.

--b.

> 
> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
> ---
>  include/linux/nfsd/nfsfh.h |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> diff --git a/include/linux/nfsd/nfsfh.h b/include/linux/nfsd/nfsfh.h
> index 8f641c9..2973e11 100644
> --- a/include/linux/nfsd/nfsfh.h
> +++ b/include/linux/nfsd/nfsfh.h
> @@ -20,7 +20,6 @@
>  # include <linux/fs.h>
>  #endif
>  #include <linux/nfsd/const.h>
> -#include <linux/nfsd/debug.h>
>  
>  /*
>   * This is the old "dentry style" Linux NFSv2 file handle.
> @@ -329,9 +328,6 @@ fh_lock_nested(struct svc_fh *fhp, unsigned int subclass)
>  	struct dentry	*dentry = fhp->fh_dentry;
>  	struct inode	*inode;
>  
> -	dfprintk(FILEOP, "nfsd: fh_lock(%s) locked = %d\n",
> -			SVCFH_fmt(fhp), fhp->fh_locked);
> -
>  	BUG_ON(!dentry);
>  
>  	if (fhp->fh_locked) {
> -- 
> 1.6.5.2
> 

  reply	other threads:[~2009-12-05  0:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 18:26 [PATCHSET 00/12 repost] nfsd: #includes cleanup Boaz Harrosh
2009-12-03 18:28 ` [PATCH 01/12] nfsd: Remove nfsfh.h dependency on sunrpc Boaz Harrosh
2009-12-05  1:01   ` J. Bruce Fields [this message]
2009-12-03 18:28 ` [PATCH 02/12] sunrpc: Clean never used include files Boaz Harrosh
2009-12-03 18:28 ` [PATCH 03/12] nfsd: Fix independence of a few nfsd related headers Boaz Harrosh
2009-12-03 18:28 ` [PATCH 04/12] nfsd: Headers Independence and include cleanups Boaz Harrosh
2009-12-03 18:29 ` [PATCH 05/12] nfsd: Source files #include cleanups Boaz Harrosh
2009-12-03 18:29 ` [PATCH 06/12] compat.c: Remove dependence on nfsd private headers Boaz Harrosh
2009-12-03 18:29 ` [PATCH 07/12] parsic: remove un-used nfsd #includes Boaz Harrosh
2009-12-03 18:29 ` [PATCH 08/12] sparc: " Boaz Harrosh
2009-12-03 18:30 ` [PATCH 09/12] s390: " Boaz Harrosh
2009-12-03 18:30 ` [PATCH 10/12] lockd: Remove un-used nfsd headers #includes Boaz Harrosh
2009-12-03 18:30 ` [PATCH 11/12] vfs: nfsctl.c un-used nfsd #includes Boaz Harrosh
2009-12-03 18:30 ` [PATCH 12/12] nfsd: Move private headers to source directory Boaz Harrosh
2009-12-03 18:37 ` [pnfs] [PATCHSET 00/12 repost] nfsd: #includes cleanup Boaz Harrosh
2009-12-03 19:01   ` J. Bruce Fields
2009-12-05  1:00 ` J. Bruce Fields
2009-12-05  1:03   ` J. Bruce Fields
2009-12-05  1:04     ` J. Bruce Fields
2009-12-06  9:36       ` Boaz Harrosh

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=20091205010102.GD22497@fieldses.org \
    --to=bfields@citi.umich.edu \
    --cc=bharrosh@panasas.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=pnfs@linux-nfs.org \
    /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