X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Ffs_struct.c;h=04b3f5b9c6295e196e16af5cc0eda6ada62a7c7c;hb=cc09ee80c3b18ae1a897a30a17fe710b2b2f620a;hp=ca639ed967b7a66c489b2e14e675df2e0cbca247;hpb=86766756ac2b10ad23849becdc245ea903466616;p=linux-2.6-microblaze.git diff --git a/fs/fs_struct.c b/fs/fs_struct.c index ca639ed967b7..04b3f5b9c629 100644 --- a/fs/fs_struct.c +++ b/fs/fs_struct.c @@ -117,7 +117,7 @@ struct fs_struct *copy_fs_struct(struct fs_struct *old) fs->users = 1; fs->in_exec = 0; spin_lock_init(&fs->lock); - seqcount_init(&fs->seq); + seqcount_spinlock_init(&fs->seq, &fs->lock); fs->umask = old->umask; spin_lock(&old->lock); @@ -163,6 +163,6 @@ EXPORT_SYMBOL(current_umask); struct fs_struct init_fs = { .users = 1, .lock = __SPIN_LOCK_UNLOCKED(init_fs.lock), - .seq = SEQCNT_ZERO(init_fs.seq), + .seq = SEQCNT_SPINLOCK_ZERO(init_fs.seq, &init_fs.lock), .umask = 0022, };