diff options
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index a9dd384c5e80..0a38ef8d7f00 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -2606,7 +2606,7 @@ static void __d_move(struct dentry * dentry, struct dentry * target) | |||
2606 | dentry_lock_for_move(dentry, target); | 2606 | dentry_lock_for_move(dentry, target); |
2607 | 2607 | ||
2608 | write_seqcount_begin(&dentry->d_seq); | 2608 | write_seqcount_begin(&dentry->d_seq); |
2609 | write_seqcount_begin(&target->d_seq); | 2609 | write_seqcount_begin_nested(&target->d_seq, DENTRY_D_LOCK_NESTED); |
2610 | 2610 | ||
2611 | /* __d_drop does write_seqcount_barrier, but they're OK to nest. */ | 2611 | /* __d_drop does write_seqcount_barrier, but they're OK to nest. */ |
2612 | 2612 | ||
@@ -2738,7 +2738,7 @@ static void __d_materialise_dentry(struct dentry *dentry, struct dentry *anon) | |||
2738 | dentry_lock_for_move(anon, dentry); | 2738 | dentry_lock_for_move(anon, dentry); |
2739 | 2739 | ||
2740 | write_seqcount_begin(&dentry->d_seq); | 2740 | write_seqcount_begin(&dentry->d_seq); |
2741 | write_seqcount_begin(&anon->d_seq); | 2741 | write_seqcount_begin_nested(&anon->d_seq, DENTRY_D_LOCK_NESTED); |
2742 | 2742 | ||
2743 | dparent = dentry->d_parent; | 2743 | dparent = dentry->d_parent; |
2744 | 2744 | ||