proc: Allow creating permanently empty directories that serve as mount points
[linux-2.6-block.git] / fs / proc / internal.h
index c835b94c0cd3afec0bea4017ca8bacd63b32ff8e..aa2781095bd15f4d9e98b5bcf58fe77ba5576f09 100644 (file)
@@ -191,6 +191,12 @@ static inline struct proc_dir_entry *pde_get(struct proc_dir_entry *pde)
 }
 extern void pde_put(struct proc_dir_entry *);
 
+static inline bool is_empty_pde(const struct proc_dir_entry *pde)
+{
+       return S_ISDIR(pde->mode) && !pde->proc_iops;
+}
+struct proc_dir_entry *proc_create_mount_point(const char *name);
+
 /*
  * inode.c
  */