New locking/refcounting for fs_struct
[linux-2.6-block.git] / fs / proc / task_nommu.c
index 343ea1216bc8e05ddc84e75af47cfbab73fee529..6ca01052c5bc265540e62f148c4c043ff9258fac 100644 (file)
@@ -49,7 +49,7 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)
        else
                bytes += kobjsize(mm);
        
-       if (current->fs && atomic_read(&current->fs->count) > 1)
+       if (current->fs && current->fs->users > 1)
                sbytes += kobjsize(current->fs);
        else
                bytes += kobjsize(current->fs);