Re: [PATCH V4 03/12] kernfs: add an API to get kernfs node from inode number

From
Tejun Heo <tj@kernel.org>
Date
2017-06-28 18:07:23
Also in
lkml
Reply to
Shaohua Li, 2017-06-28
On Wed, Jun 28, 2017 at 09:29:53AM -0700, Shaohua Li wrote:
From: Shaohua Li <redacted>

Add an API to get kernfs node from inode number. We will need this to
implement exportfs operations.

This API will be used in blktrace too later, so it should be as fast as
possible. To make the API lock free, kernfs node is freed in RCU
context. And we depend on kernfs_node count/ino number to filter out
stale kernfs nodes.

Signed-off-by: Shaohua Li <redacted>
Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun
Thread (36 messages) 36 messages, 7 authors, last reply 2017-06-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help