Commit 7f954a6
Al Viro
simplify the callers of mnt_unhold_writers()
The logics in cleanup on failure in mount_setattr_prepare() is simplified
by having the mnt_hold_writers() failure followed by advancing m to the
next node in the tree before leaving the loop.
And since all calls are preceded by the same check that flag has been set
and the function is inlined, let's just shift the check into it.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent d7b7253 commit 7f954a6
1 file changed
Lines changed: 10 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
718 | | - | |
| 717 | + | |
719 | 718 | | |
720 | 719 | | |
721 | 720 | | |
722 | 721 | | |
723 | 722 | | |
| 723 | + | |
| 724 | + | |
724 | 725 | | |
725 | 726 | | |
726 | 727 | | |
| |||
4768 | 4769 | | |
4769 | 4770 | | |
4770 | 4771 | | |
4771 | | - | |
| 4772 | + | |
| 4773 | + | |
4772 | 4774 | | |
| 4775 | + | |
4773 | 4776 | | |
4774 | 4777 | | |
4775 | 4778 | | |
4776 | 4779 | | |
4777 | 4780 | | |
4778 | 4781 | | |
4779 | 4782 | | |
4780 | | - | |
4781 | | - | |
4782 | | - | |
4783 | | - | |
4784 | | - | |
4785 | | - | |
4786 | | - | |
4787 | | - | |
4788 | | - | |
4789 | | - | |
4790 | | - | |
4791 | | - | |
4792 | | - | |
4793 | | - | |
4794 | | - | |
4795 | | - | |
4796 | | - | |
4797 | | - | |
4798 | | - | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
4799 | 4786 | | |
4800 | 4787 | | |
4801 | 4788 | | |
| |||
4826 | 4813 | | |
4827 | 4814 | | |
4828 | 4815 | | |
4829 | | - | |
4830 | | - | |
| 4816 | + | |
4831 | 4817 | | |
4832 | 4818 | | |
4833 | 4819 | | |
| |||
0 commit comments