aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/page.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2025-03-22 23:50:20 +0000
committerAl Viro <[email protected]>2025-07-03 02:44:55 +0000
commitfc1abdca51ed7ddfe3fa8090a5b1f9ef9a792a22 (patch)
tree4b20e596b1ac6a96bf0779cc6fedb1a9abda2d74 /rust/helpers/page.c
parentrpc_pipe: don't overdo directory locking (diff)
downloadkernel-fc1abdca51ed7ddfe3fa8090a5b1f9ef9a792a22.tar.gz
kernel-fc1abdca51ed7ddfe3fa8090a5b1f9ef9a792a22.zip
rpc_pipe: saner primitive for creating subdirectories
All users of __rpc_mkdir() have the same form - start_creating(), followed, in case of success, by __rpc_mkdir() and unlocking parent. Combine that into a single helper, expanding __rpc_mkdir() into it, along with the call of __rpc_create_common() in it. Don't mess with d_drop() + d_add() - just d_instantiate() and be done with that. The reason __rpc_create_common() goes for that dance is that dentry it gets might or might not be hashed; here we know it's hashed. Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'rust/helpers/page.c')
0 files changed, 0 insertions, 0 deletions