summaryrefslogtreecommitdiff
path: root/include/linux/path.h
blob: 475225a03d0dc30461124e91b0b9011322ace660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_PATH_H
#define _LINUX_PATH_H

struct dentry;
struct vfsmount;

struct path {
	struct vfsmount *mnt;
	struct dentry *dentry;
} __randomize_layout;

extern void path_get(const struct path *);
extern void path_put(const struct path *);

static inline int path_equal(const struct path *path1, const struct path *path2)
{
	return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
}

static inline void path_put_init(struct path *path)
{
	path_put(path);
	*path = (struct path) { };
}

#endif  /* _LINUX_PATH_H */
/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c?h=linux-5.1.y&id=129cf5f7f19658db343edbdfbda5b95d2756cb2a'>cxgb4/cxgb4vf: check fw caps to set link mode maskGanesh Goudar 2017-12-28cxgb4/cxgb4vf: support for XLAUI Port TypeGanesh Goudar 2017-12-13cxgb4: Add support for ethtool i2c dumpArjun Vynipadath 2017-11-11cxgb4: collect vpd info directly from hardwareRahul Lakkireddy 2017-10-14cxgb4: update API for TP indirect register accessRahul Lakkireddy 2017-10-14cxgb4: implement ethtool dump data operationsRahul Lakkireddy 2017-08-20cxgb4/cxgbvf: Handle 32-bit fw port capabilitiesGanesh Goudar 2017-07-29cxgb4: ethtool forward error correction management supportCasey Leedom 2017-07-05cxgb4: Support for get_ts_info ethtool methodAtul Gupta 2017-05-21cxgb4 : retrieve port information from firmwareGanesh Goudar 2017-05-08treewide: use kv[mz]alloc* rather than opencoded variantsMichal Hocko