Commit 6632068
Al Viro
copy_tree(): don't link the mounts via mnt_list
The only place that really needs to be adjusted is commit_tree() -
there we need to iterate through the copy and we might as well
use next_mnt() for that. However, in case when our tree has been
slid under something already mounted (propagation to a mountpoint
that already has something mounted on it or a 'beneath' move_mount)
we need to take care not to walk into the overmounting tree.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent dd5a4e1 commit 6632068
3 files changed
Lines changed: 27 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | 1164 | | |
1193 | 1165 | | |
1194 | 1166 | | |
| |||
1215 | 1187 | | |
1216 | 1188 | | |
1217 | 1189 | | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1218 | 1211 | | |
1219 | 1212 | | |
1220 | 1213 | | |
| |||
1831 | 1824 | | |
1832 | 1825 | | |
1833 | 1826 | | |
1834 | | - | |
1835 | | - | |
1836 | | - | |
| 1827 | + | |
| 1828 | + | |
1837 | 1829 | | |
1838 | 1830 | | |
1839 | 1831 | | |
| |||
2270 | 2262 | | |
2271 | 2263 | | |
2272 | 2264 | | |
2273 | | - | |
2274 | 2265 | | |
2275 | 2266 | | |
2276 | 2267 | | |
| |||
2686 | 2677 | | |
2687 | 2678 | | |
2688 | 2679 | | |
2689 | | - | |
2690 | | - | |
2691 | 2680 | | |
2692 | 2681 | | |
2693 | | - | |
2694 | | - | |
| 2682 | + | |
2695 | 2683 | | |
2696 | 2684 | | |
2697 | 2685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
| 453 | + | |
453 | 454 | | |
454 | 455 | | |
455 | 456 | | |
| |||
0 commit comments