diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-04-05 13:43:00 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-04-05 13:43:00 +0000 |
| commit | 56c62ab69c70e0946fc856178084bae9d3c94de7 (patch) | |
| tree | 4fec310933c3f010cb11496271fcf10b48a51554 /sys/fs/pseudofs | |
| parent | 0d68e7fead93aae38d9c2ea28efee6e3a242844e (diff) | |
Notes
Diffstat (limited to 'sys/fs/pseudofs')
| -rw-r--r-- | sys/fs/pseudofs/pseudofs.c | 6 | ||||
| -rw-r--r-- | sys/fs/pseudofs/pseudofs.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/pseudofs/pseudofs.c b/sys/fs/pseudofs/pseudofs.c index 42c45bbd4908..049afc5ea464 100644 --- a/sys/fs/pseudofs/pseudofs.c +++ b/sys/fs/pseudofs/pseudofs.c @@ -188,7 +188,7 @@ pfs_create_file(struct pfs_node *parent, const char *name, pfs_fill_t fill, */ struct pfs_node * pfs_create_link(struct pfs_node *parent, const char *name, pfs_fill_t fill, - pfs_attr_t attr, pfs_vis_t vis, pfs_destroy_t destroy, + pfs_attr_t attr, pfs_vis_t vis, pfs_destroy_t destroy, int flags) { struct pfs_node *node; @@ -255,9 +255,9 @@ pfs_destroy(struct pfs_node *node) } /* callback to free any private resources */ - if(node->pn_destroy != NULL) + if (node->pn_destroy != NULL) (node->pn_destroy)(node); - + /* revoke vnodes and release memory */ pfs_disable(node); FREE(node, M_PFSNODES); diff --git a/sys/fs/pseudofs/pseudofs.h b/sys/fs/pseudofs/pseudofs.h index 58eba44b714c..49ba64acadbb 100644 --- a/sys/fs/pseudofs/pseudofs.h +++ b/sys/fs/pseudofs/pseudofs.h @@ -225,7 +225,7 @@ int pfs_uninit (struct pfs_info *pi, struct vfsconf *vfc); * Directory structure construction and manipulation */ struct pfs_node *pfs_create_dir (struct pfs_node *parent, const char *name, - pfs_attr_t attr, pfs_vis_t vis, + pfs_attr_t attr, pfs_vis_t vis, pfs_destroy_t destroy, int flags); struct pfs_node *pfs_create_file(struct pfs_node *parent, const char *name, pfs_fill_t fill, pfs_attr_t attr, |
