Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:40366 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751623Ab1LOSn2 (ORCPT ); Thu, 15 Dec 2011 13:43:28 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBFIhRGX007968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Dec 2011 13:43:27 -0500 Received: from dantu.rdu.redhat.com (dantu.rdu.redhat.com [10.11.228.66]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pBFIhQq7021450 for ; Thu, 15 Dec 2011 13:43:27 -0500 From: Jeff Layton To: linux-nfs@vger.kernel.org Subject: [PATCH v2 3/5] nfsd: add a generic flags field to nfs4_client Date: Thu, 15 Dec 2011 13:43:24 -0500 Message-Id: <1323974606-16477-4-git-send-email-jlayton@redhat.com> In-Reply-To: <1323974606-16477-1-git-send-email-jlayton@redhat.com> References: <1323974606-16477-1-git-send-email-jlayton@redhat.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: We'll need a way to flag the nfs4_client as already being recorded on stable storage so that we don't continually upcall. Once we're able to deprecate the old state tracking code, we can get rid of cl_recdir to recoup some of the space we're using here. Signed-off-by: Jeff Layton --- fs/nfsd/state.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index b07f5ea..712bd32 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -240,6 +240,8 @@ struct nfs4_client { nfs4_verifier cl_verifier; /* generated by client */ time_t cl_time; /* time of last lease renewal */ struct sockaddr_storage cl_addr; /* client ipaddress */ +#define NFSD4_CLIENT_STABLE (0) /* client on stable storage */ + unsigned long cl_flags; u32 cl_flavor; /* setclientid pseudoflavor */ char *cl_principal; /* setclientid principal name */ struct svc_cred cl_cred; /* setclientid principal */ -- 1.7.1