Lines Matching defs:v9ses
105 int v9fs_random_cachetag(struct v9fs_session_info *v9ses)
107 v9ses->cachetag = kmalloc(CACHETAG_LEN, GFP_KERNEL);
108 if (!v9ses->cachetag)
111 return scnprintf(v9ses->cachetag, CACHETAG_LEN, "%lu", jiffies);
117 struct v9fs_session_info *v9ses;
120 v9ses = (struct v9fs_session_info *)cookie_netfs_data;
121 P9_DPRINTK(P9_DEBUG_FSC, "session %p buf %p size %u", v9ses,
124 if (v9ses->cachetag)
125 klen = strlen(v9ses->cachetag);
130 memcpy(buffer, v9ses->cachetag, klen);
131 P9_DPRINTK(P9_DEBUG_FSC, "cache session tag %s", v9ses->cachetag);
141 void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses)
144 if (!v9ses->cachetag)
145 v9fs_random_cachetag(v9ses);
147 v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index,
149 v9ses);
150 P9_DPRINTK(P9_DEBUG_FSC, "session %p get cookie %p", v9ses,
151 v9ses->fscache);
154 void v9fs_cache_session_put_cookie(struct v9fs_session_info *v9ses)
156 P9_DPRINTK(P9_DEBUG_FSC, "session %p put cookie %p", v9ses,
157 v9ses->fscache);
158 fscache_relinquish_cookie(v9ses->fscache, 0);
159 v9ses->fscache = NULL;
253 struct v9fs_session_info *v9ses;
262 v9ses = v9fs_inode2v9ses(inode);
263 vcookie->fscache = fscache_acquire_cookie(v9ses->fscache,
318 struct v9fs_session_info *v9ses;
329 v9ses = v9fs_inode2v9ses(inode);
330 vcookie->fscache = fscache_acquire_cookie(v9ses->fscache,