rcu: Rename rcu_lockdep_assert() to RCU_LOCKDEP_WARN()
[deliverable/linux.git] / include / linux / fdtable.h
index 230f87bdf5ad02008ff622e65bc761e41d4b22e0..674e3e226465a0b21a283e068d77d665eca84052 100644 (file)
@@ -47,6 +47,9 @@ struct files_struct {
    * read mostly part
    */
        atomic_t count;
+       bool resize_in_progress;
+       wait_queue_head_t resize_wait;
+
        struct fdtable __rcu *fdt;
        struct fdtable fdtab;
   /*
@@ -83,8 +86,8 @@ static inline struct file *__fcheck_files(struct files_struct *files, unsigned i
 
 static inline struct file *fcheck_files(struct files_struct *files, unsigned int fd)
 {
-       rcu_lockdep_assert(rcu_read_lock_held() ||
-                          lockdep_is_held(&files->file_lock),
+       RCU_LOCKDEP_WARN(!rcu_read_lock_held() &&
+                          !lockdep_is_held(&files->file_lock),
                           "suspicious rcu_dereference_check() usage");
        return __fcheck_files(files, fd);
 }
This page took 0.036703 seconds and 5 git commands to generate.