]> Gentwo Git Trees - linux/.git/commit
convert binderfs
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 10 Mar 2024 19:26:05 +0000 (15:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:05 +0000 (01:35 -0500)
commitb89aa544821d5018002829fce5d10c9d00cc567f
treedcd408d2241452f193a3c9d12437eb411f3b7bcb
parent02da8d2c0965fe9183b6100e438a3aee8bc4e088
convert binderfs

Objects are created either by d_alloc_name()+d_add() (in
binderfs_ctl_create()) or by simple_start_creating()+d_instantiate().
Removals are by simple_recurisive_removal().

Switch d_add()/d_instantiate() to d_make_persistent() + dput().
Voila - kill_litter_super() is not needed anymore.

Fold dput()+unlocking the parent into simple_done_creating(), while
we are at it.

NOTE: return value of binderfs_create_file() is borrowed; it may get
stored in proc->binderfs_entry.  See binder_release()...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/android/binderfs.c