Home
last modified time | relevance | path

Searched refs:pde (Results 1 – 9 of 9) sorted by relevance

/fs/proc/
Dinode.c49 de = ei->pde; in proc_evict_inode()
52 ei->pde = NULL; in proc_evict_inode()
75 ei->pde = NULL; in proc_alloc_inode()
206 static inline int use_pde(struct proc_dir_entry *pde) in use_pde() argument
208 return likely(atomic_inc_unless_negative(&pde->in_use)); in use_pde()
211 static void unuse_pde(struct proc_dir_entry *pde) in unuse_pde() argument
213 if (unlikely(atomic_dec_return(&pde->in_use) == BIAS)) in unuse_pde()
214 complete(pde->pde_unload_completion); in unuse_pde()
218 static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo) in close_pdeo() argument
219 __releases(&pde->pde_unload_lock) in close_pdeo()
[all …]
Dinternal.h77 static inline bool pde_is_permanent(const struct proc_dir_entry *pde) in pde_is_permanent() argument
79 return pde->flags & PROC_ENTRY_PERMANENT; in pde_is_permanent()
83 void pde_free(struct proc_dir_entry *pde);
97 struct proc_dir_entry *pde; member
115 return PROC_I(inode)->pde; in PDE()
193 static inline struct proc_dir_entry *pde_get(struct proc_dir_entry *pde) in pde_get() argument
195 refcount_inc(&pde->refcnt); in pde_get()
196 return pde; in pde_get()
200 static inline bool is_empty_pde(const struct proc_dir_entry *pde) in is_empty_pde() argument
202 return S_ISDIR(pde->mode) && !pde->proc_iops; in is_empty_pde()
[all …]
Dgeneric.c37 void pde_free(struct proc_dir_entry *pde) in pde_free() argument
39 if (S_ISLNK(pde->mode)) in pde_free()
40 kfree(pde->data); in pde_free()
41 if (pde->name != pde->inline_name) in pde_free()
42 kfree(pde->name); in pde_free()
43 kmem_cache_free(proc_dir_entry_cache, pde); in pde_free()
566 static inline void pde_set_flags(struct proc_dir_entry *pde) in pde_set_flags() argument
568 if (pde->proc_ops->proc_flags & PROC_ENTRY_PERMANENT) in pde_set_flags()
569 pde->flags |= PROC_ENTRY_PERMANENT; in pde_set_flags()
680 void pde_put(struct proc_dir_entry *pde) in pde_put() argument
[all …]
Dproc_net.c32 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET() argument
34 return pde->parent->data; in PDE_NET()
/fs/nilfs2/
Ddir.c544 struct nilfs_dir_entry *de, *pde = NULL; in nilfs_delete_entry() local
558 pde = de; in nilfs_delete_entry()
561 if (pde) in nilfs_delete_entry()
562 from = (char *)pde - (char *)page_address(page); in nilfs_delete_entry()
566 if (pde) in nilfs_delete_entry()
567 pde->rec_len = nilfs_rec_len_to_disk(to - from); in nilfs_delete_entry()
/fs/ext2/
Ddir.c567 ext2_dirent * pde = NULL; in ext2_delete_entry() local
578 pde = de; in ext2_delete_entry()
581 if (pde) in ext2_delete_entry()
582 from = (char*)pde - (char*)page_address(page); in ext2_delete_entry()
587 if (pde) in ext2_delete_entry()
588 pde->rec_len = ext2_rec_len_to_disk(to - from); in ext2_delete_entry()
/fs/ufs/
Ddir.c503 struct ufs_dir_entry *pde = NULL; in ufs_delete_entry() local
521 pde = de; in ufs_delete_entry()
524 if (pde) in ufs_delete_entry()
525 from = (char*)pde - (char*)page_address(page); in ufs_delete_entry()
531 if (pde) in ufs_delete_entry()
532 pde->d_reclen = cpu_to_fs16(sb, to - from); in ufs_delete_entry()
/fs/ext4/
Dnamei.c2625 struct ext4_dir_entry_2 *de, *pde; in ext4_generic_delete_entry() local
2630 pde = NULL; in ext4_generic_delete_entry()
2637 if (pde) in ext4_generic_delete_entry()
2638 pde->rec_len = ext4_rec_len_to_disk( in ext4_generic_delete_entry()
2639 ext4_rec_len_from_disk(pde->rec_len, in ext4_generic_delete_entry()
2650 pde = de; in ext4_generic_delete_entry()
/fs/ocfs2/
Ddir.c1132 struct ocfs2_dir_entry *de, *pde; in __ocfs2_delete_entry() local
1140 pde = NULL; in __ocfs2_delete_entry()
1156 if (pde) in __ocfs2_delete_entry()
1157 le16_add_cpu(&pde->rec_len, in __ocfs2_delete_entry()
1165 pde = de; in __ocfs2_delete_entry()