X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fs%2Fproc%2Finternal.h;h=aa2781095bd15f4d9e98b5bcf58fe77ba5576f09;hb=eb6d38d5427b3ad42f5268da0f1dd31bb0af1264;hp=c835b94c0cd3afec0bea4017ca8bacd63b32ff8e;hpb=f9bd6733d3f11e24f3949becf277507d422ee1eb;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 */