Re: [PATCH] VFS: Cut down inode->i_op->xyz accesses in path walking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 26, 2011 at 11:41 AM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> Hmm...  We still have 19 spare bits in ->i_flags and at least 22 in ->i_state.
> Do we need to bother with new field at all?  ->i_state is unsigned long...

Do we *need* it? No. But it's often in the next cache-line. It would
be beautiful to put the bits right next to i_mode, and basically make
a lot of the common operations just touch those four bytes for doing
the S_ISDIR tests and the "can I use generic_permission()" tests etc.

And the whole point of that is to make for a smaller cacheline
footprint (and admittedly also the few cycles to avoid the dereference
- and that you'd get from using i_state).

                  Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux