Commit e460bc4
ovl: narrow locking in ovl_create_over_whiteout()
Unlock the parents immediately after the rename, and use
ovl_cleanup_unlocked() for cleanup, which takes a separate lock.
This makes way for future changes where locks are taken on individual
dentries rather than the whole directory.
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/20250716004725.1206467-8-neil@brown.name
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 4f622bd commit e460bc4
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
437 | 436 | | |
438 | | - | |
439 | 437 | | |
440 | 438 | | |
441 | 439 | | |
| |||
506 | 504 | | |
507 | 505 | | |
508 | 506 | | |
| 507 | + | |
509 | 508 | | |
510 | | - | |
| 509 | + | |
511 | 510 | | |
512 | | - | |
| 511 | + | |
513 | 512 | | |
514 | 513 | | |
| 514 | + | |
515 | 515 | | |
516 | | - | |
| 516 | + | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | 524 | | |
526 | 525 | | |
527 | 526 | | |
| |||
0 commit comments