Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-05-02 Thread Greg KH
On Mon, May 02, 2016 at 12:32:56PM -0400, Tejun Heo wrote: > On Wed, Apr 20, 2016 at 03:43:13PM -0400, Tejun Heo wrote: > > On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > > > From: Serge Hallyn > > > > > > We've calculated @len to be the bytes

Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-05-02 Thread Greg KH
On Mon, May 02, 2016 at 12:32:56PM -0400, Tejun Heo wrote: > On Wed, Apr 20, 2016 at 03:43:13PM -0400, Tejun Heo wrote: > > On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > > > From: Serge Hallyn > > > > > > We've calculated @len to be the bytes we need for '/..'

Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-05-02 Thread Tejun Heo
On Wed, Apr 20, 2016 at 03:43:13PM -0400, Tejun Heo wrote: > On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > > From: Serge Hallyn > > > > We've calculated @len to be the bytes we need for '/..' entries from > > @kn_from to the common ancestor,

Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-05-02 Thread Tejun Heo
On Wed, Apr 20, 2016 at 03:43:13PM -0400, Tejun Heo wrote: > On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > > From: Serge Hallyn > > > > We've calculated @len to be the bytes we need for '/..' entries from > > @kn_from to the common ancestor, and calculated @nlen to

Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-04-20 Thread Tejun Heo
On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > From: Serge Hallyn > > We've calculated @len to be the bytes we need for '/..' entries from > @kn_from to the common ancestor, and calculated @nlen to be the extra > bytes we need to get from the

Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-04-20 Thread Tejun Heo
On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > From: Serge Hallyn > > We've calculated @len to be the bytes we need for '/..' entries from > @kn_from to the common ancestor, and calculated @nlen to be the extra > bytes we need to get from the common ancestor to

[PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-04-17 Thread serge . hallyn
From: Serge Hallyn We've calculated @len to be the bytes we need for '/..' entries from @kn_from to the common ancestor, and calculated @nlen to be the extra bytes we need to get from the common ancestor to @kn_to. We use them as such at the end. But in the loop

[PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-04-17 Thread serge . hallyn
From: Serge Hallyn We've calculated @len to be the bytes we need for '/..' entries from @kn_from to the common ancestor, and calculated @nlen to be the extra bytes we need to get from the common ancestor to @kn_to. We use them as such at the end. But in the loop copying the actual entries, we