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)
commite257039f0fc7da36ac3a522ef9a5cb4ae7852e67
tree7da79ed819f206696859706bbcfe907857f2b577
parent87bb5b60019c60e1f902e6885734cc4e5135c2d9
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