mirror of
https://github.com/torvalds/linux.git
synced 2024-12-09 04:31:39 +00:00
1f32761322
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to free software foundation 51 franklin street fifth floor boston ma 02111 1301 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 27 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170026.981318839@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27 lines
744 B
C
27 lines
744 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* V9FS FID Management
|
|
*
|
|
* Copyright (C) 2005 by Eric Van Hensbergen <ericvh@gmail.com>
|
|
*/
|
|
#ifndef FS_9P_FID_H
|
|
#define FS_9P_FID_H
|
|
#include <linux/list.h>
|
|
|
|
struct p9_fid *v9fs_fid_lookup(struct dentry *dentry);
|
|
static inline struct p9_fid *v9fs_parent_fid(struct dentry *dentry)
|
|
{
|
|
return v9fs_fid_lookup(dentry->d_parent);
|
|
}
|
|
void v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid);
|
|
struct p9_fid *v9fs_writeback_fid(struct dentry *dentry);
|
|
static inline struct p9_fid *clone_fid(struct p9_fid *fid)
|
|
{
|
|
return IS_ERR(fid) ? fid : p9_client_walk(fid, 0, NULL, 1);
|
|
}
|
|
static inline struct p9_fid *v9fs_fid_clone(struct dentry *dentry)
|
|
{
|
|
return clone_fid(v9fs_fid_lookup(dentry));
|
|
}
|
|
#endif
|