@@ -113,9 +113,27 @@ struct v9fs_session_info {
113113
114114struct p9_fid * v9fs_session_init (struct v9fs_session_info * , const char * ,
115115 char * );
116- void v9fs_session_close (struct v9fs_session_info * v9ses );
117- void v9fs_session_cancel (struct v9fs_session_info * v9ses );
118- void v9fs_session_begin_cancel (struct v9fs_session_info * v9ses );
116+ extern void v9fs_session_close (struct v9fs_session_info * v9ses );
117+ extern void v9fs_session_cancel (struct v9fs_session_info * v9ses );
118+ extern void v9fs_session_begin_cancel (struct v9fs_session_info * v9ses );
119+ extern struct dentry * v9fs_vfs_lookup (struct inode * dir , struct dentry * dentry ,
120+ struct nameidata * nameidata );
121+ extern int v9fs_vfs_unlink (struct inode * i , struct dentry * d );
122+ extern int v9fs_vfs_rmdir (struct inode * i , struct dentry * d );
123+ extern int v9fs_vfs_rename (struct inode * old_dir , struct dentry * old_dentry ,
124+ struct inode * new_dir , struct dentry * new_dentry );
125+ extern void v9fs_vfs_put_link (struct dentry * dentry , struct nameidata * nd ,
126+ void * p );
127+ extern struct inode * v9fs_inode (struct v9fs_session_info * v9ses ,
128+ struct p9_fid * fid ,
129+ struct super_block * sb );
130+
131+ extern const struct inode_operations v9fs_dir_inode_operations_dotl ;
132+ extern const struct inode_operations v9fs_file_inode_operations_dotl ;
133+ extern const struct inode_operations v9fs_symlink_inode_operations_dotl ;
134+ extern struct inode * v9fs_inode_dotl (struct v9fs_session_info * v9ses ,
135+ struct p9_fid * fid ,
136+ struct super_block * sb );
119137
120138/* other default globals */
121139#define V9FS_PORT 564
@@ -138,3 +156,21 @@ static inline int v9fs_proto_dotl(struct v9fs_session_info *v9ses)
138156{
139157 return v9ses -> flags & V9FS_PROTO_2000L ;
140158}
159+
160+ /**
161+ * v9fs_inode_from_fid - Helper routine to populate an inode by
162+ * issuing a attribute request
163+ * @v9ses: session information
164+ * @fid: fid to issue attribute request for
165+ * @sb: superblock on which to create inode
166+ *
167+ */
168+ static inline struct inode *
169+ v9fs_inode_from_fid (struct v9fs_session_info * v9ses , struct p9_fid * fid ,
170+ struct super_block * sb )
171+ {
172+ if (v9fs_proto_dotl (v9ses ))
173+ return v9fs_inode_dotl (v9ses , fid , sb );
174+ else
175+ return v9fs_inode (v9ses , fid , sb );
176+ }
0 commit comments