Linus Torvalds writes: (Summary) For example, this very same code in the
caller does
+ struct dentry *victim = NULL;
+ if (!victim) {
but in many ways it would be more natural to just check the exit condition, and
+ struct dentry *victim;
(I'm not sure if we should just return the actual exit condition -
defaulting to D_WALK_CONTINUE if there was nothing to walk at all - or
whether we should just return a boolean for "terminated early")
Hmm?
↧