gen_compile_commands: move directory walk to a generator function
[linux-2.6-microblaze.git] / fs / dcache.c
index 361ea7a..ea04858 100644 (file)
@@ -1746,7 +1746,7 @@ static struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
        dentry->d_lockref.count = 1;
        dentry->d_flags = 0;
        spin_lock_init(&dentry->d_lock);
-       seqcount_init(&dentry->d_seq);
+       seqcount_spinlock_init(&dentry->d_seq, &dentry->d_lock);
        dentry->d_inode = NULL;
        dentry->d_parent = dentry;
        dentry->d_sb = sb;