Re: Query on shrink list

2018-08-17 Thread Mukesh Ojha
On 8/17/2018 6:28 PM, Al Viro wrote: On Fri, Aug 17, 2018 at 03:39:22PM +0530, Mukesh Ojha wrote: 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_L

Re: Query on shrink list

2018-08-17 Thread Al Viro
On Fri, Aug 17, 2018 at 03:39:22PM +0530, Mukesh Ojha wrote: > 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) { >     dat

Query on shrink list

2018-08-17 Thread Mukesh Ojha
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