summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-01-09 04:37:23 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-02-27 22:43:56 +0300
commitbd7c4b508344680c843e2d2436d56b9fc8aedc9d (patch)
tree0a04fa39c8e16178e9665e6d412e4b2a4b470fdb /tools/perf/scripts/python
parent31d1726d7250021c66c9f16d8a128444676db782 (diff)
downloadlinux-bd7c4b508344680c843e2d2436d56b9fc8aedc9d.tar.xz
handle_mounts(): start building a sane wrapper for follow_managed()
All callers of follow_managed() follow it on success with the same steps - d_backing_inode(path->dentry) is calculated and stored into some struct inode * variable and, in all but one case, an unsigned variable (nd->seq to be) is zeroed. The single exception is lookup_fast() and there zeroing is correct thing to do - not doing it is a pointless microoptimization. Add a wrapper for follow_managed() that would do that combination. It's mostly a vehicle for code massage - it will be changing quite a bit, and the current calling conventions are by no means final. Right now it takes path, nameidata and (as out params) inode and seq, similar to __follow_mount_rcu(). Which will soon get folded into it... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions