Re: Bug in fs/kernfs/dir.c comment or code?

2014-03-03 Thread Tejun Heo
(cc'ing Greg and Eric) On Sun, Mar 02, 2014 at 09:16:58PM +0100, Richard Cochran wrote: > I stumbled across this in fs/kernfs/dir.c:39. > > /* Reserve hash numbers 0, 1 and INT_MAX for magic directory entries */ > if (hash < 1) > hash += 2; > if (hash >= INT_MAX)

Re: Bug in fs/kernfs/dir.c comment or code?

2014-03-03 Thread Tejun Heo
(cc'ing Greg and Eric) On Sun, Mar 02, 2014 at 09:16:58PM +0100, Richard Cochran wrote: I stumbled across this in fs/kernfs/dir.c:39. /* Reserve hash numbers 0, 1 and INT_MAX for magic directory entries */ if (hash 1) hash += 2; if (hash = INT_MAX)