All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever@oracle.com>
To: Jeff Layton <jlayton@redhat.com>
Cc: trond.myklebust@netapp.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH 3/8] nfs: eliminate nfs4_rename_arg
Date: Wed, 15 Sep 2010 11:26:49 -0400	[thread overview]
Message-ID: <8432F4C7-B2C0-4CB1-B3AA-63444ED6BF8E@oracle.com> (raw)
In-Reply-To: <1284557041-4375-4-git-send-email-jlayton@redhat.com>


On Sep 15, 2010, at 9:23 AM, Jeff Layton wrote:

> Add the missing fields to nfs_renameargs and drop nfs4_rename_arg
> 
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> ---
> fs/nfs/nfs4proc.c       |    2 +-
> fs/nfs/nfs4xdr.c        |    2 +-
> include/linux/nfs_xdr.h |   19 ++++++-------------
> 3 files changed, 8 insertions(+), 15 deletions(-)
> 
> diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
> index 089da5b..eb36784 100644
> --- a/fs/nfs/nfs4proc.c
> +++ b/fs/nfs/nfs4proc.c
> @@ -2675,7 +2675,7 @@ static int _nfs4_proc_rename(struct inode *old_dir, struct qstr *old_name,
> 		struct inode *new_dir, struct qstr *new_name)
> {
> 	struct nfs_server *server = NFS_SERVER(old_dir);
> -	struct nfs4_rename_arg arg = {
> +	struct nfs_renameargs arg = {
> 		.old_dir = NFS_FH(old_dir),
> 		.new_dir = NFS_FH(new_dir),
> 		.old_name = old_name,
> diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
> index 08ef912..7a098ae 100644
> --- a/fs/nfs/nfs4xdr.c
> +++ b/fs/nfs/nfs4xdr.c
> @@ -1823,7 +1823,7 @@ static int nfs4_xdr_enc_remove(struct rpc_rqst *req, __be32 *p, const struct nfs
> /*
>  * Encode RENAME request
>  */
> -static int nfs4_xdr_enc_rename(struct rpc_rqst *req, __be32 *p, const struct nfs4_rename_arg *args)
> +static int nfs4_xdr_enc_rename(struct rpc_rqst *req, __be32 *p, const struct nfs_renameargs *args)
> {
> 	struct xdr_stream xdr;
> 	struct compound_hdr hdr = {
> diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
> index 5436680..60fa509 100644
> --- a/include/linux/nfs_xdr.h
> +++ b/include/linux/nfs_xdr.h
> @@ -403,10 +403,12 @@ struct nfs_removeres {
>  * Common arguments to the rename call
>  */
> struct nfs_renameargs {
> -	const struct nfs_fh *	old_dir;
> -	const struct nfs_fh *	new_dir;
> -	const struct qstr *	old_name;
> -	const struct qstr *	new_name;
> +	const struct nfs_fh *		old_dir;
> +	const struct nfs_fh *		new_dir;
> +	const struct qstr *		old_name;
> +	const struct qstr *		new_name;
> +	const u32 *			bitmask;
> +	struct nfs4_sequence_args	seq_args;

Should these new fields be gated by CONFIG_NFS_V4 ?

> };
> 
> /*
> @@ -793,15 +795,6 @@ struct nfs4_readlink_res {
> 	struct nfs4_sequence_res	seq_res;
> };
> 
> -struct nfs4_rename_arg {
> -	const struct nfs_fh *		old_dir;
> -	const struct nfs_fh *		new_dir;
> -	const struct qstr *		old_name;
> -	const struct qstr *		new_name;
> -	const u32 *			bitmask;
> -	struct nfs4_sequence_args	seq_args;
> -};
> -
> struct nfs4_rename_res {
> 	const struct nfs_server *	server;
> 	struct nfs4_change_info		old_cinfo;
> -- 
> 1.7.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
chuck[dot]lever[at]oracle[dot]com





  reply	other threads:[~2010-09-15 15:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-15 13:23 [PATCH 0/8] nfs: ensure that sillyrenames run to completion (try #2) Jeff Layton
2010-09-15 13:23 ` [PATCH 1/8] nfs: eliminate nfs3_renameargs Jeff Layton
2010-09-15 13:23 ` [PATCH 2/8] nfs: convert nfs_renameargs to use qstr structs Jeff Layton
2010-09-15 13:23 ` [PATCH 3/8] nfs: eliminate nfs4_rename_arg Jeff Layton
2010-09-15 15:26   ` Chuck Lever [this message]
2010-09-15 15:34     ` Jeff Layton
2010-09-15 16:45     ` Trond Myklebust
2010-09-15 16:50       ` Chuck Lever
2010-09-15 13:23 ` [PATCH 4/8] nfs: standardize the rename response container Jeff Layton
2010-09-15 15:29   ` Chuck Lever
2010-09-15 15:38     ` Jeff Layton
2010-09-15 13:23 ` [PATCH 5/8] nfs: move nfs_sillyrename to unlink.c Jeff Layton
2010-09-15 13:23 ` [PATCH 6/8] nfs: add a rename_setup nfs_rpc_op for async renames Jeff Layton
2010-09-15 15:39   ` Chuck Lever
2010-09-15 17:23     ` Jeff Layton
2010-09-15 13:24 ` [PATCH 7/8] nfs: add rename_done nfs_rpc_op Jeff Layton
2010-09-15 13:24 ` [PATCH 8/8] nfs: make sillyrename an async operation Jeff Layton
2010-09-15 13:37   ` Jeff Layton
2010-09-15 15:04     ` Jeff Layton

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=8432F4C7-B2C0-4CB1-B3AA-63444ED6BF8E@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=jlayton@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@netapp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.