lkml.org 
[lkml]   [2010]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 16/18] fs: Make iunique independent of inode_lock
On Fri, Oct 08, 2010 at 03:55:24AM -0400, Christoph Hellwig wrote:
> > + hlist_bl_for_each_entry(inode, node, &b->head, i_hash) {
> > + if (inode->i_ino == ino && inode->i_sb == sb) {
>
> wouldn't it be more natural to test the sb first here?

Maybe, but I think an inode number match is less likely, so the
order it currently does the check results in less code being
executed on misses. I'll have a look at the rest of the code and do
whatever order they do.

Cheers,

Dave.
--
Dave Chinner
david@fromorbit.com


\
 
 \ /
  Last update: 2010-10-08 10:09    [W:0.186 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site