• Home
  • Raw
  • Download

Lines Matching refs:v9ses

49 int v9fs_random_cachetag(struct v9fs_session_info *v9ses)  in v9fs_random_cachetag()  argument
51 v9ses->cachetag = kmalloc(CACHETAG_LEN, GFP_KERNEL); in v9fs_random_cachetag()
52 if (!v9ses->cachetag) in v9fs_random_cachetag()
55 return scnprintf(v9ses->cachetag, CACHETAG_LEN, "%lu", jiffies); in v9fs_random_cachetag()
61 struct v9fs_session_info *v9ses; in v9fs_cache_session_get_key() local
64 v9ses = (struct v9fs_session_info *)cookie_netfs_data; in v9fs_cache_session_get_key()
66 v9ses, buffer, bufmax); in v9fs_cache_session_get_key()
68 if (v9ses->cachetag) in v9fs_cache_session_get_key()
69 klen = strlen(v9ses->cachetag); in v9fs_cache_session_get_key()
74 memcpy(buffer, v9ses->cachetag, klen); in v9fs_cache_session_get_key()
75 p9_debug(P9_DEBUG_FSC, "cache session tag %s\n", v9ses->cachetag); in v9fs_cache_session_get_key()
85 void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses) in v9fs_cache_session_get_cookie() argument
88 if (!v9ses->cachetag) in v9fs_cache_session_get_cookie()
89 v9fs_random_cachetag(v9ses); in v9fs_cache_session_get_cookie()
91 v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index, in v9fs_cache_session_get_cookie()
93 v9ses, true); in v9fs_cache_session_get_cookie()
95 v9ses, v9ses->fscache); in v9fs_cache_session_get_cookie()
98 void v9fs_cache_session_put_cookie(struct v9fs_session_info *v9ses) in v9fs_cache_session_put_cookie() argument
101 v9ses, v9ses->fscache); in v9fs_cache_session_put_cookie()
102 fscache_relinquish_cookie(v9ses->fscache, 0); in v9fs_cache_session_put_cookie()
103 v9ses->fscache = NULL; in v9fs_cache_session_put_cookie()
195 struct v9fs_session_info *v9ses; in v9fs_cache_inode_get_cookie() local
204 v9ses = v9fs_inode2v9ses(inode); in v9fs_cache_inode_get_cookie()
205 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_get_cookie()
259 struct v9fs_session_info *v9ses; in v9fs_cache_inode_reset_cookie() local
270 v9ses = v9fs_inode2v9ses(inode); in v9fs_cache_inode_reset_cookie()
271 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_reset_cookie()