Commit c2e5e29
Al Viro
to_shrink_list(): call only if refcount is 0
The only thing it does if refcount is not zero is d_lru_del(); no
point, IMO, seeing that plain dput() does nothing of that sort...
Note that 2 of 3 current callers are guaranteed that refcount is 0.
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 5e7a5c8 commit c2e5e29
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
918 | | - | |
919 | | - | |
| 918 | + | |
920 | 919 | | |
921 | 920 | | |
922 | 921 | | |
| |||
1115 | 1114 | | |
1116 | 1115 | | |
1117 | 1116 | | |
1118 | | - | |
1119 | | - | |
| 1117 | + | |
1120 | 1118 | | |
1121 | | - | |
1122 | 1119 | | |
1123 | 1120 | | |
1124 | 1121 | | |
| |||
0 commit comments