kernfs: implement kernfs_path_len()
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 21:54:55 +0000 (14:54 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 22:49:15 +0000 (15:49 -0700)
commit9acee9c551f045d2c5b5261aa587331423fd7d92
tree16f0ecafd4f842d6352dd85913283a262a8e56f0
parent60292bcc1b240a6708aa531c8ece1da2a78d560a
kernfs: implement kernfs_path_len()

Add a function to determine the path length of a kernfs node.  This
for now will be used by writeback tracepoint updates.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/kernfs/dir.c
include/linux/kernfs.h