1329510Shselasky/*-
2329510Shselasky * Copyright (c) 2017 Limelight Networks, Inc.
3329510Shselasky * All rights reserved.
4329510Shselasky *
5329510Shselasky * Redistribution and use in source and binary forms, with or without
6329510Shselasky * modification, are permitted provided that the following conditions
7329510Shselasky * are met:
8329510Shselasky * 1. Redistributions of source code must retain the above copyright
9329510Shselasky *    notice unmodified, this list of conditions, and the following
10329510Shselasky *    disclaimer.
11329510Shselasky * 2. Redistributions in binary form must reproduce the above copyright
12329510Shselasky *    notice, this list of conditions and the following disclaimer in the
13329510Shselasky *    documentation and/or other materials provided with the distribution.
14329510Shselasky *
15329510Shselasky * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16329510Shselasky * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17329510Shselasky * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18329510Shselasky * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19329510Shselasky * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20329510Shselasky * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21329510Shselasky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22329510Shselasky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23329510Shselasky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24329510Shselasky * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25329510Shselasky *
26329510Shselasky * $FreeBSD: stable/11/sys/compat/linuxkpi/common/include/linux/dcache.h 329966 2018-02-25 10:30:36Z hselasky $
27329510Shselasky */
28329510Shselasky
29329510Shselasky#ifndef __LINUX_DCACHE_H
30329510Shselasky#define	__LINUX_DCACHE_H
31329510Shselasky
32329510Shselaskystruct vnode;
33329510Shselaskystruct pfs_node;
34329510Shselasky
35329510Shselaskystruct dentry {
36329510Shselasky	struct vnode *d_inode;
37329510Shselasky	struct pfs_node *d_pfs_node;	/* FreeBSD specific field */
38329510Shselasky};
39329510Shselasky
40329510Shselaskystatic inline struct vnode *
41329510Shselaskyd_inode(const struct dentry *dentry)
42329510Shselasky{
43329510Shselasky	return (dentry->d_inode);
44329510Shselasky}
45329510Shselasky
46329510Shselasky#endif /* __LINUX_DCACHE_H */
47