Re: [PATCH 51/79] namei: remove restrictions on nesting depth

2015-05-06 Thread Al Viro
On Wed, May 06, 2015 at 08:24:07AM +0100, Al Viro wrote: > 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_automo

Re: [PATCH 51/79] namei: remove restrictions on nesting depth

2015-05-06 Thread Al Viro
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 (curr

Re: [PATCH 51/79] namei: remove restrictions on nesting depth

2015-05-05 Thread NeilBrown
On Tue, 5 May 2015 06:22:25 +0100 Al Viro wrote: > From: Al Viro > > The only restriction is that on the total amount of symlinks > crossed; how they are nested does not matter > > Signed-off-by: Al Viro > --- > - if (unlikely(current->total_link_count >= 40)) { > + if (unlikely(cu