login
Header Space

 
 

Re: [PATCH 1/7] XFS: Name operation vector for hash and compare

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Barry Naujok <bnaujok@...>
Cc: <xfs@...>, <linux-fsdevel@...>
Date: Wednesday, April 2, 2008 - 9:29 pm

On Wed, Apr 02, 2008 at 04:25:09PM +1000, Barry Naujok wrote:

Ok, so internally I see this is not the case. I'll comment on that
inline.

......

const.


Does this need global visibility? It's only needed in xfs_dir_mount(),
right?


Static inline functions, please.


Why add this "fast path"? All you're saving here is a few
instructions but making the code much harder to follow.

		cmp = xfs_dir_compname(dp, dep->name, dep->namelen,
						args->name, args->namelen);

Will do exactly the same thing and I'd much prefer readable code
over prematurely optimised code any day of the week....


So if we find multiple case matches, we'll take the last we find?


Should we really be promoting that assert to before we return a successful
case match?


Same again.


Same question about promoting the assert....


Same again.


This only checks for an exact match - what is supposed to happen
with a XFS_CMP_CASE return?


ditto.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/7] XFS: Name operation vector for hash and comp..., David Chinner, (Wed Apr 2, 9:29 pm)
Re: [PATCH 1/7] XFS: Name operation vector for hash and comp..., Josef 'Jeff' Sipek, (Wed Apr 2, 8:22 pm)
speck-geostationary