]> err.no Git - linux-2.6/blobdiff - fs/fcntl.c
[PATCH] relayfs: remove unused alloc/destroy_inode()
[linux-2.6] / fs / fcntl.c
index d2f3ed8acd932e92a21844fd6df19d7ad3a10b36..863b46e0d78a6594371a744358104faae657c307 100644 (file)
@@ -40,10 +40,10 @@ static inline int get_close_on_exec(unsigned int fd)
        struct files_struct *files = current->files;
        struct fdtable *fdt;
        int res;
-       spin_lock(&files->file_lock);
+       rcu_read_lock();
        fdt = files_fdtable(files);
        res = FD_ISSET(fd, fdt->close_on_exec);
-       spin_unlock(&files->file_lock);
+       rcu_read_unlock();
        return res;
 }