Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2002 11:42:21 -0800
From:      Kirk McKusick <mckusick@beastie.mckusick.com>
To:        Ian Dowse <iedowse@maths.tcd.ie>
Cc:        Jake Burkholder <jake@locore.ca>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/ufs/ufs inode.h src/sys/sys conf.h src/sys/ufs/ffs ffs_snapshot.c 
Message-ID:  <200212141942.gBEJgL59011922@beastie.mckusick.com>
In-Reply-To: Your message of "Sat, 14 Dec 2002 16:56:07 GMT." <200212141656.aa51164@salmon.maths.tcd.ie> 

next in thread | previous in thread | raw e-mail | index | archive | help
	To: Jake Burkholder <jake@locore.ca>
	cc: Kirk McKusick <mckusick@mckusick.com>, cvs-committers@FreeBSD.org,
	   cvs-all@FreeBSD.org
	Subject: Re: cvs commit: src/sys/ufs/ufs inode.h ...
	In-Reply-To: Your message of "Sat, 14 Dec 2002 03:16:31 EST."
		     <20021214031631.D93389@locore.ca> 
	Date: Sat, 14 Dec 2002 16:56:07 +0000
	From: Ian Dowse <iedowse@maths.tcd.ie>
	X-ASK-Info: Whitelist match

	In message <20021214031631.D93389@locore.ca>, Jake Burkholder writes:
	>Apparently, On Fri, Dec 13, 2002 at 05:37:00PM -0800,
	>
	>This tries to stuff a pointer into a 32 bit integer.
	>
	>+	((daddr_t *)(ip->i_offset)) = &snapblklist[1];
	>
	>Please find a field that is wide enough to hold a pointer on
	>all platforms.

	How about just putting back the i_snapblklist field into struct
	inode for now? I suppose we could eventually use a union with the
	directory modification state fields, though the size reduction is
	fairly marginal. Patch below - sorry, this is completely untested.

	Ian

I understand the size issue. How about we form a union with
the *i_dirhash pointer since directories and snapshots are 
never going to overlap. There are thousands of inodes allocated
and it seems really wasteful to carry an extra pointer around
as a temporary variable that is rarely used.

	Kirk McKusick

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212141942.gBEJgL59011922>