Commit 15f2373
Al Viro
fast_dput(): new rules for refcount
By now there is only one place in entire fast_dput() where we return
false; that happens after refcount had been decremented and found (under
->d_lock) to be zero. In that case, just prior to returning false to
caller, fast_dput() forcibly changes the refcount from 0 to 1.
Lift that resetting refcount to 1 into the callers; later in the series
it will be massaged out of existence.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 504e08c commit 15f2373
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | 850 | | |
858 | 851 | | |
859 | 852 | | |
| |||
896 | 889 | | |
897 | 890 | | |
898 | 891 | | |
| 892 | + | |
899 | 893 | | |
900 | 894 | | |
901 | 895 | | |
| |||
930 | 924 | | |
931 | 925 | | |
932 | 926 | | |
| 927 | + | |
933 | 928 | | |
934 | 929 | | |
935 | 930 | | |
| |||
0 commit comments