diff options
author | kib <kib@FreeBSD.org> | 2009-02-08 19:18:33 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-02-08 19:18:33 +0000 |
commit | 8571ced24c174eea12d164f46470290a8ed9cec6 (patch) | |
tree | 7dfcb5eedc4540a1aa55fa41015be168102928ea /sys/fs/tmpfs/tmpfs.h | |
parent | 185bd48df413b2f290b4b5ccd6fb5af7310ec8a3 (diff) | |
download | FreeBSD-src-8571ced24c174eea12d164f46470290a8ed9cec6.zip FreeBSD-src-8571ced24c174eea12d164f46470290a8ed9cec6.tar.gz |
Lookup up the directory entry for the tmpfs node that are deleted by
both node pointer and name component. This does the right thing for
hardlinks to the same node in the same directory.
Submitted by: Yoshihiro Ota <ota j email ne jp>
PR: kern/131356
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/tmpfs/tmpfs.h')
-rw-r--r-- | sys/fs/tmpfs/tmpfs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h index 5b3be11..1ae8ca6 100644 --- a/sys/fs/tmpfs/tmpfs.h +++ b/sys/fs/tmpfs/tmpfs.h @@ -408,9 +408,8 @@ int tmpfs_alloc_file(struct vnode *, struct vnode **, struct vattr *, void tmpfs_dir_attach(struct vnode *, struct tmpfs_dirent *); void tmpfs_dir_detach(struct vnode *, struct tmpfs_dirent *); struct tmpfs_dirent * tmpfs_dir_lookup(struct tmpfs_node *node, + struct tmpfs_node *f, struct componentname *cnp); -struct tmpfs_dirent *tmpfs_dir_search(struct tmpfs_node *node, - struct tmpfs_node *f); int tmpfs_dir_getdotdent(struct tmpfs_node *, struct uio *); int tmpfs_dir_getdotdotdent(struct tmpfs_node *, struct uio *); struct tmpfs_dirent * tmpfs_dir_lookupbycookie(struct tmpfs_node *, off_t); |