Query on shrink list

From: Mukesh Ojha
Date: Fri Aug 17 2018 - 06:09:35 EST


Hi Al Viro,

Is there is reason we have kept data->found++, if the dentry already there in shrink list ?

static enum d_walk_ret select_collect(
...
ÂÂÂÂÂÂÂ if (dentry->d_flags & DCACHE_SHRINK_LIST) {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ data->found++;
ÂÂÂÂÂÂÂ } else {
 ..

If the dentry is already there on shrink list, does it not mean that data->found is already non-zero ?
Can't we just go out from here directly?


Regards,
Mukesh