[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1515701343.3788.19.camel@kernel.org>
Date: Thu, 11 Jan 2018 15:09:03 -0500
From: Jeff Layton <jlayton@...nel.org>
To: Theodore Ts'o <tytso@....edu>
Cc: "Darrick J. Wong" <darrick.wong@...cle.com>,
adilger.kernel@...ger.ca, linux-ext4@...r.kernel.org,
dhowells@...hat.com
Subject: Re: [RFC PATCH] ext4: don't split xattr inode refcounts across
i_ctime and i_version fields
On Thu, 2018-01-11 at 13:39 -0500, Theodore Ts'o wrote:
> On Tue, Jan 09, 2018 at 02:05:31PM -0500, Jeff Layton wrote:
> >
> > Ahh, many thanks...
> >
> > My main question was: why split the refcount across fields like this? If
> > it's necessary now for backward compatibility then so be it, but it's
> > weird and not 100% clear why it's being done that way.
>
> The main reason is that the only inode that will need it is the hidden
> extended attribute inode (and then only for Samba servers that are
> supporting enterprise domain CIFS servers where there are more than
> 64k files using the same windows ACL). So we didn't want to use extra
> bytes in the inode, since it's only going to be used in a very tiny
> fraction of servers.
>
> For the right workload, though, this should allow ext4 to have
> significantly better performance, since if you are serving a large
> directory where all of the files have their own ACL or Windows
> security ID xattrs, without shared extended attributes, when you open
> a Files explorer on that directory, for each file the file system will
> be forced to do lots of random 4k reads to fetch the xattrs.
>
Oh, sorry...I may not have been clear.
I wasn't really asking about the need for xattr inodes. My question was
more about why it was decided to split the refcount in two, and store
part of it in the ctime and part in the i_version field.
Wouldn't it have made more sense to just store it all in i_version field
(like this patch makes it do)? If this breaks backward compatibility
though, then I'm fine with just dropping the patch.
Cheers,
--
Jeff Layton <jlayton@...nel.org>
Powered by blists - more mailing lists