[PATCH] files: lock-free fd look-up
[linux-2.6.git] / security / selinux / hooks.c
index acb5a495a902fa792c05677d6b638021d94d966a..f40c8221ec1ba215b9526d74993ad5e8a4ed4256 100644 (file)
@@ -1652,7 +1652,7 @@ static inline void flush_unauthorized_files(struct files_struct * files)
                                                continue;
                                        }
                                        if (devnull) {
-                                               atomic_inc(&devnull->f_count);
+                                               rcuref_inc(&devnull->f_count);
                                        } else {
                                                devnull = dentry_open(dget(selinux_null), mntget(selinuxfs_mount), O_RDWR);
                                                if (!devnull) {