aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2024-02-20 04:32:22 +0000
committerAl Viro <[email protected]>2025-07-03 02:44:55 +0000
commit8be22c49646e47452e74aa0b97ea50fb04c271ed (patch)
treed36df0f341440f0eb28048673b671e6617c927eb /rust/helpers/task.c
parentrpc_unlink(): use simple_recursive_removal() (diff)
downloadkernel-8be22c49646e47452e74aa0b97ea50fb04c271ed.tar.gz
kernel-8be22c49646e47452e74aa0b97ea50fb04c271ed.zip
rpc_populate(): lift cleanup into callers
rpc_populate() is called either from fill_super (where we don't need to remove any files on failure - rpc_kill_sb() will take them all out anyway) or from rpc_mkdir_populate(), where we need to remove the directory we'd been trying to populate along with whatever we'd put into it before we failed. Simpler to combine that into simple_recursive_removal() there. Note that rpc_pipe is overlocking directories quite a bit - locked parent is no obstacle to finding a child in dcache, so keeping it locked won't prevent userland observing a partially built subtree. All we need is to follow minimal VFS requirements; it's not as if clients used directory locking for exclusion - tree changes are serialized, but that's done on ->pipefs_sb_lock. Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions