Commit 76efa5e3 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

Staging: pohmelfs: fix atomic type spew

atomic_long != atomic
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9cfa2bc2
...@@ -1865,7 +1865,7 @@ static int pohmelfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -1865,7 +1865,7 @@ static int pohmelfs_fill_super(struct super_block *sb, void *data, int silent)
INIT_LIST_HEAD(&psb->crypto_active_list); INIT_LIST_HEAD(&psb->crypto_active_list);
atomic_set(&psb->trans_gen, 1); atomic_set(&psb->trans_gen, 1);
atomic_set(&psb->total_inodes, 0); atomic_long_set(&psb->total_inodes, 0);
mutex_init(&psb->state_lock); mutex_init(&psb->state_lock);
INIT_LIST_HEAD(&psb->state_list); INIT_LIST_HEAD(&psb->state_list);
......
...@@ -680,7 +680,7 @@ static int pohmelfs_root_cap_response(struct netfs_state *st) ...@@ -680,7 +680,7 @@ static int pohmelfs_root_cap_response(struct netfs_state *st)
printk(KERN_INFO "Mounting POHMELFS (%d) " printk(KERN_INFO "Mounting POHMELFS (%d) "
"with extended attributes support.\n", psb->idx); "with extended attributes support.\n", psb->idx);
if (atomic_read(&psb->total_inodes) <= 1) if (atomic_long_read(&psb->total_inodes) <= 1)
atomic_long_set(&psb->total_inodes, cap->nr_files); atomic_long_set(&psb->total_inodes, cap->nr_files);
dprintk("%s: total: %llu, avail: %llu, flags: %llx, inodes: %llu.\n", dprintk("%s: total: %llu, avail: %llu, flags: %llx, inodes: %llu.\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment