aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2025-04-24 05:45:05 +0000
committerAl Viro <[email protected]>2025-05-05 17:42:49 +0000
commit006ff7498fe89bd9dfb891101f02557d5cfcf427 (patch)
treedf927455a4886400412ba2d83fead6b597258949 /scripts/gcc-plugins/sancov_plugin.c
parentLinux 6.15-rc5 (diff)
downloadkernel-006ff7498fe89bd9dfb891101f02557d5cfcf427.tar.gz
kernel-006ff7498fe89bd9dfb891101f02557d5cfcf427.zip
saner calling conventions for ->d_automount()
Currently the calling conventions for ->d_automount() instances have an odd wart - returned new mount to be attached is expected to have refcount 2. That kludge is intended to make sure that mark_mounts_for_expiry() called before we get around to attaching that new mount to the tree won't decide to take it out. finish_automount() drops the extra reference after it's done with attaching mount to the tree - or drops the reference twice in case of error. ->d_automount() instances have rather counterintuitive boilerplate in them. There's a much simpler approach: have mark_mounts_for_expiry() skip the mounts that are yet to be mounted. And to hell with grabbing/dropping those extra references. Makes for simpler correctness analysis, at that... Reviewed-by: Christian Brauner <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Paulo Alcantara (Red Hat) <[email protected]> Acked-by: David Howells <[email protected]> Tested-by: David Howells <[email protected]> Acked-by: Steven Rostedt (Google) <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions