summaryrefslogtreecommitdiffstats
path: root/include/linux/path.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2017-12-04 17:59:52 +0000
committerMark Brown <broonie@kernel.org>2017-12-04 17:59:52 +0000
commitd218439feccafaa3e852bbaecc0d9f6110096b65 (patch)
treec4ebfeaebd965735cea5d90332d0f8013b79e628 /include/linux/path.h
parenta76d7f5454c688b52dc849e832cc4c6dd0975723 (diff)
parentfdaa451107ce543d345a339b4d5e20e8e4bac396 (diff)
downloadtalos-op-linux-d218439feccafaa3e852bbaecc0d9f6110096b65.tar.gz
talos-op-linux-d218439feccafaa3e852bbaecc0d9f6110096b65.zip
Merge branch 'fix/amd' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-amd
Diffstat (limited to 'include/linux/path.h')
-rw-r--r--include/linux/path.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/path.h b/include/linux/path.h
index cde895cc4af4..475225a03d0d 100644
--- a/include/linux/path.h
+++ b/include/linux/path.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_PATH_H
#define _LINUX_PATH_H
@@ -17,4 +18,10 @@ 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 */
OpenPOWER on IntegriCloud