]> git.baikalelectronics.ru Git - kernel.git/commit
mount_setattr(): clean the control flow and calling conventions
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 1 Mar 2022 04:04:20 +0000 (23:04 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2022 23:17:13 +0000 (19:17 -0400)
commitab2673ef1eec97e8f9a0ef9a5e5a01e2067bef03
tree7da79ed819f206696859706bbcfe907857f2b577
parentcfad0b9fae569bbb7b3e541b88c24cf4f99765da
mount_setattr(): clean the control flow and calling conventions

separate the "cleanup" and "apply" codepaths (they have almost no overlap),
fold the "cleanup" into "prepare" (which eliminates the need of ->revert)
and make loops more idiomatic.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c