X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fs%2Fproc%2Finternal.h;h=aa2781095bd15f4d9e98b5bcf58fe77ba5576f09;hb=a7b7617493179a0ff76cbc0cc2eb45ad07074765;hp=c835b94c0cd3afec0bea4017ca8bacd63b32ff8e;hpb=48b810d9bc4a3ea1baff44fa7f553833dd69b836;p=linux-2.6-block.git diff --git a/fs/proc/internal.h b/fs/proc/internal.h index c835b94c0cd3..aa2781095bd1 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -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 */