diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-22 12:59:10 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-02 19:35:59 -0400 |
| commit | 9bf5d488529b9efa01bd292633482acd10277b90 (patch) | |
| tree | aa945a59dfda9975b82f11be735088bf54b1db82 /rust/helpers/bug.c | |
| parent | 6bbbc4a04a10ebdb633501dc87aac5b0d6b80ec8 (diff) | |
finish_automount(): take the lock_mount() analogue into a helper
finish_automount() can't use lock_mount() - it treats finding something
already mounted as "quitely drop our mount and return 0", not as
"mount on top of whatever mounted there". It's been open-coded;
let's take it into a helper similar to lock_mount(). "something's
already mounted" => -EBUSY, finish_automount() needs to distinguish
it from the normal case and it can't happen in other failure cases.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions
