On Fri, Oct 08, 2010 at 04:21:20PM +1100, Dave Chinner wrote:
I don't think there's a point keeping this comment.
I'd say just drop the mentioning of how we got a reference to the inode,
it's just too confusing in this context.
I think the export is placed incorrectly here.
Please add a kerneldoc comment for both exported functions.
Also what's the point of taking inode_lock in iref when the only thing
we do is an atomic_in? It's probably better only having iref for now
and only introduce iref_locked once the non-atomic increment needs
i_lock.
Also any chance to get an assert under a debug option the the reference
count really is non-zero?
--