• Home
  • Raw
  • Download

Lines Matching refs:fc

24 	struct fuse_conn *fc;  in fuse_ctl_file_conn_get()  local
26 fc = file_inode(file)->i_private; in fuse_ctl_file_conn_get()
27 if (fc) in fuse_ctl_file_conn_get()
28 fc = fuse_conn_get(fc); in fuse_ctl_file_conn_get()
30 return fc; in fuse_ctl_file_conn_get()
36 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); in fuse_conn_abort_write() local
37 if (fc) { in fuse_conn_abort_write()
38 fuse_abort_conn(fc); in fuse_conn_abort_write()
39 fuse_conn_put(fc); in fuse_conn_abort_write()
52 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); in fuse_conn_waiting_read() local
53 if (!fc) in fuse_conn_waiting_read()
56 value = atomic_read(&fc->num_waiting); in fuse_conn_waiting_read()
58 fuse_conn_put(fc); in fuse_conn_waiting_read()
103 struct fuse_conn *fc; in fuse_conn_max_background_read() local
106 fc = fuse_ctl_file_conn_get(file); in fuse_conn_max_background_read()
107 if (!fc) in fuse_conn_max_background_read()
110 val = fc->max_background; in fuse_conn_max_background_read()
111 fuse_conn_put(fc); in fuse_conn_max_background_read()
126 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); in fuse_conn_max_background_write() local
127 if (fc) { in fuse_conn_max_background_write()
128 fc->max_background = val; in fuse_conn_max_background_write()
129 fuse_conn_put(fc); in fuse_conn_max_background_write()
140 struct fuse_conn *fc; in fuse_conn_congestion_threshold_read() local
143 fc = fuse_ctl_file_conn_get(file); in fuse_conn_congestion_threshold_read()
144 if (!fc) in fuse_conn_congestion_threshold_read()
147 val = fc->congestion_threshold; in fuse_conn_congestion_threshold_read()
148 fuse_conn_put(fc); in fuse_conn_congestion_threshold_read()
163 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); in fuse_conn_congestion_threshold_write() local
164 if (fc) { in fuse_conn_congestion_threshold_write()
165 fc->congestion_threshold = val; in fuse_conn_congestion_threshold_write()
166 fuse_conn_put(fc); in fuse_conn_congestion_threshold_write()
200 struct fuse_conn *fc, in fuse_ctl_add_dentry() argument
209 BUG_ON(fc->ctl_ndents >= FUSE_CTL_NUM_DENTRIES); in fuse_ctl_add_dentry()
214 fc->ctl_dentry[fc->ctl_ndents++] = dentry; in fuse_ctl_add_dentry()
221 inode->i_uid = fc->user_id; in fuse_ctl_add_dentry()
222 inode->i_gid = fc->group_id; in fuse_ctl_add_dentry()
229 inode->i_private = fc; in fuse_ctl_add_dentry()
238 int fuse_ctl_add_conn(struct fuse_conn *fc) in fuse_ctl_add_conn() argument
248 sprintf(name, "%u", fc->dev); in fuse_ctl_add_conn()
249 parent = fuse_ctl_add_dentry(parent, fc, name, S_IFDIR | 0500, 2, in fuse_ctl_add_conn()
255 if (!fuse_ctl_add_dentry(parent, fc, "waiting", S_IFREG | 0400, 1, in fuse_ctl_add_conn()
257 !fuse_ctl_add_dentry(parent, fc, "abort", S_IFREG | 0200, 1, in fuse_ctl_add_conn()
259 !fuse_ctl_add_dentry(parent, fc, "max_background", S_IFREG | 0600, in fuse_ctl_add_conn()
261 !fuse_ctl_add_dentry(parent, fc, "congestion_threshold", in fuse_ctl_add_conn()
269 fuse_ctl_remove_conn(fc); in fuse_ctl_add_conn()
277 void fuse_ctl_remove_conn(struct fuse_conn *fc) in fuse_ctl_remove_conn() argument
284 for (i = fc->ctl_ndents - 1; i >= 0; i--) { in fuse_ctl_remove_conn()
285 struct dentry *dentry = fc->ctl_dentry[i]; in fuse_ctl_remove_conn()
296 struct fuse_conn *fc; in fuse_ctl_fill_super() local
306 list_for_each_entry(fc, &fuse_conn_list, entry) { in fuse_ctl_fill_super()
307 err = fuse_ctl_add_conn(fc); in fuse_ctl_fill_super()
327 struct fuse_conn *fc; in fuse_ctl_kill_sb() local
331 list_for_each_entry(fc, &fuse_conn_list, entry) in fuse_ctl_kill_sb()
332 fc->ctl_ndents = 0; in fuse_ctl_kill_sb()