dcache.h (307f78f3ed90a4145eeb2c8cc79bc95b2666f57a) dcache.h (f697b9432d9c7aa4c5ab5f5445ef5dc1bd40ce00)
1/*-
2 * Copyright (c) 2017 Limelight Networks, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD$
27 */
28
29#ifndef _LINUXKPI_LINUX_DCACHE_H
30#define _LINUXKPI_LINUX_DCACHE_H
31
1/*-
2 * Copyright (c) 2017 Limelight Networks, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD$
27 */
28
29#ifndef _LINUXKPI_LINUX_DCACHE_H
30#define _LINUXKPI_LINUX_DCACHE_H
31
32struct vnode;
33struct pfs_node;
32#include <sys/vnode.h>
34
33
34#include <fs/pseudofs/pseudofs.h>
35
35struct dentry {
36 struct vnode *d_inode;
37 struct pfs_node *d_pfs_node; /* FreeBSD specific field */
38};
39
40static inline struct vnode *
41d_inode(const struct dentry *dentry)
42{
43 return (dentry->d_inode);
44}
45
46#endif /* _LINUXKPI_LINUX_DCACHE_H */
36struct dentry {
37 struct vnode *d_inode;
38 struct pfs_node *d_pfs_node; /* FreeBSD specific field */
39};
40
41static inline struct vnode *
42d_inode(const struct dentry *dentry)
43{
44 return (dentry->d_inode);
45}
46
47#endif /* _LINUXKPI_LINUX_DCACHE_H */