Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * V9FS definitions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  *  Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *  Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #ifndef FS_9P_V9FS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #define FS_9P_V9FS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/backing-dev.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  * enum p9_session_flags - option flags for each 9P session
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15)  * @V9FS_PROTO_2000U: whether or not to use 9P2000.u extensions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16)  * @V9FS_PROTO_2000L: whether or not to use 9P2000.l extensions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17)  * @V9FS_ACCESS_SINGLE: only the mounting user can access the hierarchy
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18)  * @V9FS_ACCESS_USER: a new attach will be issued for every user (default)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19)  * @V9FS_ACCESS_CLIENT: Just like user, but access check is performed on client.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)  * @V9FS_ACCESS_ANY: use a single attach for all users
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)  * @V9FS_ACCESS_MASK: bit mask of different ACCESS options
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22)  * @V9FS_POSIX_ACL: POSIX ACLs are enforced
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)  * Session flags reflect options selected by users at mount time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #define	V9FS_ACCESS_ANY (V9FS_ACCESS_SINGLE | \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 			 V9FS_ACCESS_USER |   \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 			 V9FS_ACCESS_CLIENT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) #define V9FS_ACCESS_MASK V9FS_ACCESS_ANY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) #define V9FS_ACL_MASK V9FS_POSIX_ACL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) enum p9_session_flags {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	V9FS_PROTO_2000U	= 0x01,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	V9FS_PROTO_2000L	= 0x02,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 	V9FS_ACCESS_SINGLE	= 0x04,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	V9FS_ACCESS_USER	= 0x08,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	V9FS_ACCESS_CLIENT	= 0x10,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	V9FS_POSIX_ACL		= 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) /* possible values of ->cache */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43)  * enum p9_cache_modes - user specified cache preferences
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44)  * @CACHE_NONE: do not cache data, dentries, or directory contents (default)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45)  * @CACHE_LOOSE: cache data, dentries, and directory contents w/no consistency
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47)  * eventually support loose, tight, time, session, default always none
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) enum p9_cache_modes {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	CACHE_NONE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	CACHE_MMAP,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	CACHE_LOOSE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	CACHE_FSCACHE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	nr__p9_cache_modes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59)  * struct v9fs_session_info - per-instance session information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60)  * @flags: session options of type &p9_session_flags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61)  * @nodev: set to 1 to disable device mapping
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62)  * @debug: debug level
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63)  * @afid: authentication handle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64)  * @cache: cache mode of type &p9_cache_modes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65)  * @cachetag: the tag of the cache associated with this session
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66)  * @fscache: session cookie associated with FS-Cache
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67)  * @uname: string user name to mount hierarchy as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68)  * @aname: mount specifier for remote hierarchy
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69)  * @maxdata: maximum data to be sent/recvd per protocol message
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70)  * @dfltuid: default numeric userid to mount hierarchy as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71)  * @dfltgid: default numeric groupid to mount hierarchy as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72)  * @uid: if %V9FS_ACCESS_SINGLE, the numeric uid which mounted the hierarchy
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73)  * @clnt: reference to 9P network client instantiated for this session
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74)  * @slist: reference to list of registered 9p sessions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76)  * This structure holds state for each session instance established during
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77)  * a sys_mount() .
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79)  * Bugs: there seems to be a lot of state which could be condensed and/or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80)  * removed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) struct v9fs_session_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	/* options */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	unsigned char flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	unsigned char nodev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	unsigned short debug;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	unsigned int afid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	unsigned int cache;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) #ifdef CONFIG_9P_FSCACHE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	char *cachetag;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	struct fscache_cookie *fscache;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	char *uname;		/* user name to mount as */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	char *aname;		/* name of remote hierarchy being mounted */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	unsigned int maxdata;	/* max data for client interface */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	kuid_t dfltuid;		/* default uid/muid for legacy support */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	kgid_t dfltgid;		/* default gid for legacy support */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	kuid_t uid;		/* if ACCESS_SINGLE, the uid that has access */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	struct p9_client *clnt;	/* 9p client */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	struct list_head slist; /* list of sessions registered with v9fs */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	struct rw_semaphore rename_sem;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	long session_lock_timeout; /* retry interval for blocking locks */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) /* cache_validity flags */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define V9FS_INO_INVALID_ATTR 0x01
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) struct v9fs_inode {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #ifdef CONFIG_9P_FSCACHE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	struct mutex fscache_lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 	struct fscache_cookie *fscache;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	struct p9_qid qid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	unsigned int cache_validity;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	struct p9_fid *writeback_fid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	struct mutex v_mutex;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	struct inode vfs_inode;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) static inline struct v9fs_inode *V9FS_I(const struct inode *inode)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	return container_of(inode, struct v9fs_inode, vfs_inode);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) extern int v9fs_show_options(struct seq_file *m, struct dentry *root);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) struct p9_fid *v9fs_session_init(struct v9fs_session_info *, const char *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 									char *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) extern void v9fs_session_close(struct v9fs_session_info *v9ses);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) extern void v9fs_session_cancel(struct v9fs_session_info *v9ses);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) extern void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) extern struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 			unsigned int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) extern int v9fs_vfs_unlink(struct inode *i, struct dentry *d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) extern int v9fs_vfs_rmdir(struct inode *i, struct dentry *d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) extern int v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 			   struct inode *new_dir, struct dentry *new_dentry,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 			   unsigned int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) extern struct inode *v9fs_inode_from_fid(struct v9fs_session_info *v9ses,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 					 struct p9_fid *fid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 					 struct super_block *sb, int new);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) extern const struct inode_operations v9fs_dir_inode_operations_dotl;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) extern const struct inode_operations v9fs_file_inode_operations_dotl;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) extern const struct inode_operations v9fs_symlink_inode_operations_dotl;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) extern struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 					      struct p9_fid *fid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 					      struct super_block *sb, int new);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) /* other default globals */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) #define V9FS_PORT	564
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) #define V9FS_DEFUSER	"nobody"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) #define V9FS_DEFANAME	""
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) #define V9FS_DEFUID	KUIDT_INIT(-2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) #define V9FS_DEFGID	KGIDT_INIT(-2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) static inline struct v9fs_session_info *v9fs_inode2v9ses(struct inode *inode)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	return (inode->i_sb->s_fs_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) static inline struct v9fs_session_info *v9fs_dentry2v9ses(struct dentry *dentry)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	return dentry->d_sb->s_fs_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) static inline int v9fs_proto_dotu(struct v9fs_session_info *v9ses)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	return v9ses->flags & V9FS_PROTO_2000U;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) static inline int v9fs_proto_dotl(struct v9fs_session_info *v9ses)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	return v9ses->flags & V9FS_PROTO_2000L;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179)  * v9fs_get_inode_from_fid - Helper routine to populate an inode by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180)  * issuing a attribute request
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181)  * @v9ses: session information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)  * @fid: fid to issue attribute request for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183)  * @sb: superblock on which to create inode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) static inline struct inode *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) v9fs_get_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 			struct super_block *sb)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	if (v9fs_proto_dotl(v9ses))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 		return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 		return v9fs_inode_from_fid(v9ses, fid, sb, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)  * v9fs_get_new_inode_from_fid - Helper routine to populate an inode by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198)  * issuing a attribute request
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199)  * @v9ses: session information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200)  * @fid: fid to issue attribute request for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201)  * @sb: superblock on which to create inode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) static inline struct inode *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) v9fs_get_new_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 			    struct super_block *sb)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	if (v9fs_proto_dotl(v9ses))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 		return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 		return v9fs_inode_from_fid(v9ses, fid, sb, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) #endif