Linux NFS development
 help / color / mirror / Atom feed
From: Benny Halevy <bhalevy@panasas.com>
To: andros@netapp.com
Cc: bfields@citi.umich.edu, linux-nfs@vger.kernel.org, pnfs@linux-nfs.org
Subject: Re: [pnfs] [PATCH 20/22] SQUASHME nfsd41 nfsd4_is_solo_sequence
Date: Fri, 03 Apr 2009 03:33:20 +0300	[thread overview]
Message-ID: <49D55950.1020809@panasas.com> (raw)
In-Reply-To: <1238718003-8764-20-git-send-email-andros@netapp.com>

On Apr. 03, 2009, 3:20 +0300, andros@netapp.com wrote:
> From: Andy Adamson <andros@netapp.com>
> 
> March 31 review comments.
> squash into nfsd41: non-page DRC for solo sequence responses
> 
> Signed-off-by: Andy Adamson <andros@netapp.com>
> ---
>  include/linux/nfsd/xdr4.h |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/nfsd/xdr4.h b/include/linux/nfsd/xdr4.h
> index 018a821..0352863 100644
> --- a/include/linux/nfsd/xdr4.h
> +++ b/include/linux/nfsd/xdr4.h
> @@ -487,10 +487,10 @@ struct nfsd4_compoundres {
>  	struct nfsd4_compound_state	cstate;
>  };
>  
> -static inline u32 nfsd4_is_solo_sequence(struct nfsd4_compoundres *resp)
> +static inline int nfsd4_is_solo_sequence(struct nfsd4_compoundres *resp)

returning bool would be best.

Benny

>  {
>  	struct nfsd4_compoundargs *args = resp->rqstp->rq_argp;
> -	return args->opcnt == 1 ? 1 : 0;
> +	return args->opcnt == 1;
>  }
>  
>  static inline u32 nfsd4_not_cached(struct nfsd4_compoundres *resp)

  parent reply	other threads:[~2009-04-03  0:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03  0:19 [PATCH 01/22] SQUASHME: nfsd41: add nfsd4_session pointer to nfsd4_compound_state andros
2009-04-03  0:19 ` [PATCH 02/22] SQUASHME: nfsd41: use cstate session in nfsd4_replay_cache_entry andros
2009-04-03  0:19   ` [PATCH 03/22] SQUASHME nfsd41: use cstate session in nfsd4_sequence andros
2009-04-03  0:19     ` [PATCH 04/22] SQUASHME: nfsd41: use cstate session in nfsd4_check_drc_limit andros
2009-04-03  0:19       ` [PATCH 05/22] SQUASHME: nfsd41: use cstate session in nfs4svc_encode_compoundres andros
2009-04-03  0:19         ` [PATCH 06/22] SQUASHME: nfsd41 remove sl_session from nfsd4_open andros
2009-04-03  0:19           ` [PATCH 07/22] SQUASHME: nfsd41 remove sl_session from alloc_init_session andros
2009-04-03  0:19             ` [PATCH 08/22] SQUASHME: nfsd41 remove sl_session from nfsd4_slot andros
2009-04-03  0:19               ` [PATCH 09/22] SQUASHME: nfsd41 set cstate session andros
2009-04-03  0:19                 ` [PATCH 10/22] SQUASHME: nfsd41 rename nfsd4_move_pages andros
2009-04-03  0:19                   ` [PATCH 11/22] SQUASHME: nfsd41 rename page_no variable andros
2009-04-03  0:19                     ` [PATCH 12/22] SQUASHME: nfsd41 rename nfsd4_set_cache_entry andros
2009-04-03  0:19                       ` [PATCH 13/22] SQUASHME nfsd41 replace nfsd4_set_cache_entry andros
2009-04-03  0:19                         ` [PATCH 14/22] SQUASHME: nfsd41 fix nfsd41_copy_replay_data comment andros
2009-04-03  0:19                           ` [PATCH 15/22] SQUASHME nfsd41: revert portion of nfsd4_set_cache_entry andros
2009-04-03  0:19                             ` [PATCH 16/22] SQUASHME nfsd41: add to nfsd4_set_cache_entry andros
2009-04-03  0:19                               ` [PATCH 17/22] SQUASHME nfsd41 remove CONFIG_NFS_V4_1 around nfsd4_release_respages andros
2009-04-03  0:19                                 ` [PATCH 18/22] SQUASHME: rename nfsd4_no_page_in_cache andros
2009-04-03  0:20                                   ` [PATCH 19/22] SQUASHME: nfsd41 rename nfsd4_enc_no_page_replay andros
2009-04-03  0:20                                     ` [PATCH 20/22] SQUASHME nfsd41 nfsd4_is_solo_sequence andros
2009-04-03  0:20                                       ` [PATCH 21/22] SQUASHME: nfsd41 change nfsd4_not_cached return andros
2009-04-03  0:20                                         ` [PATCH 22/22] SQUASHME: nfsd41 drop parens in nfsd4_is_solo_sequence call andros
2009-04-03  1:02                                           ` [pnfs] " Benny Halevy
2009-04-03  0:34                                         ` [pnfs] [PATCH 21/22] SQUASHME: nfsd41 change nfsd4_not_cached return Benny Halevy
2009-04-03  0:33                                       ` Benny Halevy [this message]
2009-04-03  1:46           ` [pnfs] [PATCH 06/22] SQUASHME: nfsd41 remove sl_session from nfsd4_open Benny Halevy
2009-04-03  1:50   ` [pnfs] [PATCH 02/22] SQUASHME: nfsd41: use cstate session in nfsd4_replay_cache_entry Benny Halevy

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=49D55950.1020809@panasas.com \
    --to=bhalevy@panasas.com \
    --cc=andros@netapp.com \
    --cc=bfields@citi.umich.edu \
    --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