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 22/22] SQUASHME: nfsd41 drop parens in nfsd4_is_solo_sequence call
Date: Fri, 03 Apr 2009 04:02:17 +0300 [thread overview]
Message-ID: <49D56019.7040505@panasas.com> (raw)
In-Reply-To: <1238718003-8764-22-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 3514f00..03e7025 100644
> --- a/include/linux/nfsd/xdr4.h
> +++ b/include/linux/nfsd/xdr4.h
> @@ -495,8 +495,8 @@ static inline int nfsd4_is_solo_sequence(struct nfsd4_compoundres *resp)
>
> static inline int nfsd4_not_cached(struct nfsd4_compoundres *resp)
> {
> - return (resp->cstate.slot->sl_cache_entry.ce_cachethis == 0 ||
> - nfsd4_is_solo_sequence(resp));
> + return resp->cstate.slot->sl_cache_entry.ce_cachethis == 0 ||
since ce_cachethis is boolean rather than numeric, how about using "!"
rather than "== 0"?
Benny
> + nfsd4_is_solo_sequence(resp);
> }
>
> #define NFS4_SVC_XDRSIZE sizeof(struct nfsd4_compoundargs)
next prev parent reply other threads:[~2009-04-03 1:02 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 ` Benny Halevy [this message]
2009-04-03 0:34 ` [pnfs] [PATCH 21/22] SQUASHME: nfsd41 change nfsd4_not_cached return Benny Halevy
2009-04-03 0:33 ` [pnfs] [PATCH 20/22] SQUASHME nfsd41 nfsd4_is_solo_sequence Benny Halevy
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=49D56019.7040505@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 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.