summaryrefslogtreecommitdiffstats
path: root/lib/percpu_test.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-01-31 14:53:17 -0800
committerJens Axboe <axboe@fb.com>2017-02-02 10:20:16 -0700
commita7c5437b0bbec5165df6eb1efc5e37dc40b9e05d (patch)
treed37659f3ab5b8baccafe06442ca3fa6a1048503c /lib/percpu_test.c
parent0dba1314d4f81115dce711292ec7981d17231064 (diff)
downloadlinux-stable-a7c5437b0bbec5165df6eb1efc5e37dc40b9e05d.tar.gz
linux-stable-a7c5437b0bbec5165df6eb1efc5e37dc40b9e05d.tar.bz2
linux-stable-a7c5437b0bbec5165df6eb1efc5e37dc40b9e05d.zip
debugfs: add debugfs_lookup()
We don't always have easy access to the dentry of a file or directory we created in debugfs. Add a helper which allows us to get a dentry we previously created. The motivation for this change is a problem with blktrace and the blk-mq debugfs entries introduced in 07e4fead45e6 ("blk-mq: create debugfs directory tree"). Namely, in some cases, the directory that blktrace needs to create may already exist, but in other cases, it may not. We _could_ rely on a bunch of implied knowledge to decide whether to create the directory or not, but it's much cleaner on our end to just look it up. Signed-off-by: Omar Sandoval <osandov@fb.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'lib/percpu_test.c')
0 files changed, 0 insertions, 0 deletions