Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH] fs/dcache.c: re-add cond_resched() in shrink_dcache_pa ...

$
0
0
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?

Viewing all articles
Browse latest Browse all 1267

Trending Articles