From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Barbieri Subject: Re: [PATCH] Initial support for struct vfs_cred [0/1] Date: 31 Aug 2002 21:51:40 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1030823500.4408.133.camel@ldb> References: <15728.61345.184030.293634@charged.uio.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-sYEUNULf6EqN04Wodilt" Cc: Linus Torvalds , Linux FSdevel , Linux Kernel Return-path: To: trond.myklebust@fys.uio.no In-Reply-To: <15728.61345.184030.293634@charged.uio.no> List-Id: linux-fsdevel.vger.kernel.org --=-sYEUNULf6EqN04Wodilt Content-Type: text/plain Content-Transfer-Encoding: 7bit Forgot to mention that, of course, the vfs_cred_groups struct needs to be recreated if modified and we must keep an atomic reference count in it. This allows to avoid having to copy the whole groups array for each task on modification. uid and gid instead are placed directly in task_struct since checking them is faster and thus needs more optimization. Same reasoning applies for eventual ACLs or similar structures. --=-sYEUNULf6EqN04Wodilt Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9cR5Mdjkty3ft5+cRAnmqAJ9KTOt3XBm/Uvb+ckyeaI9cL2hODwCfcmPa LC/gUQmq0D812qZf+TimNyo= =GAtG -----END PGP SIGNATURE----- --=-sYEUNULf6EqN04Wodilt--