Merge branch 'akpm' (patches from Andrew)
[sfrench/cifs-2.6.git] / fs / proc / task_nommu.c
index 3b7e310297d2467f136229f1494411e689953237..36bf0f2e102e7811d8e8b6bee41a64cb64b65930 100644 (file)
@@ -64,7 +64,7 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)
        else
                bytes += kobjsize(current->files);
 
        else
                bytes += kobjsize(current->files);
 
-       if (current->sighand && atomic_read(&current->sighand->count) > 1)
+       if (current->sighand && refcount_read(&current->sighand->count) > 1)
                sbytes += kobjsize(current->sighand);
        else
                bytes += kobjsize(current->sighand);
                sbytes += kobjsize(current->sighand);
        else
                bytes += kobjsize(current->sighand);