X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=blobdiff_plain;f=fs%2Fnamespace.c;h=d2db7dfe232b3ecd299187ed477ad2fd7a0fd1a5;hp=93006abe7946a1cc09d116ccb89edf2dc9ecf686;hb=7bb5226c8a4bbf26a9ededc90532b0ad539d2017;hpb=2e2cbaf920d14de9a96180ddefd6861bcc46f07d diff --git a/fs/namespace.c b/fs/namespace.c index 93006abe7946..d2db7dfe232b 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3277,7 +3277,7 @@ static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool a new_ns->ns.ops = &mntns_operations; if (!anon) new_ns->seq = atomic64_add_return(1, &mnt_ns_seq); - atomic_set(&new_ns->count, 1); + refcount_set(&new_ns->ns.count, 1); INIT_LIST_HEAD(&new_ns->list); init_waitqueue_head(&new_ns->poll); spin_lock_init(&new_ns->ns_lock); @@ -3851,7 +3851,7 @@ void __init mnt_init(void) void put_mnt_ns(struct mnt_namespace *ns) { - if (!atomic_dec_and_test(&ns->count)) + if (!refcount_dec_and_test(&ns->ns.count)) return; drop_collected_mounts(&ns->root->mnt); free_mnt_ns(ns);