lkml.org 
[lkml]   [2015]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 51/79] namei: remove restrictions on nesting depth
On Wed, May 06, 2015 at 12:55:28PM +1000, NeilBrown wrote:

> > - if (unlikely(current->total_link_count >= 40)) {
> > + if (unlikely(current->total_link_count >= MAXSYMLINKS)) {
>
> There is still a literal '40' in follow_automount.
>
> current->total_link_count++;
> if (current->total_link_count >= 40)
> return -ELOOP;
>
>
> should that become MAXSYMLINKS too?

Yes, assuming we want to keep it at all...


\
 
 \ /
  Last update: 2015-05-06 10:01    [W:0.218 / U:1.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site