Home
last modified time | relevance | path

Searched refs:fc (Results 1 – 8 of 8) sorted by relevance

/fs/fuse/
Ddev.c136 static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background) in fuse_block_alloc() argument
138 return !fc->initialized || (for_background && fc->blocked); in fuse_block_alloc()
141 static struct fuse_req *__fuse_get_req(struct fuse_conn *fc, unsigned npages, in __fuse_get_req() argument
146 atomic_inc(&fc->num_waiting); in __fuse_get_req()
148 if (fuse_block_alloc(fc, for_background)) { in __fuse_get_req()
153 intr = wait_event_interruptible_exclusive(fc->blocked_waitq, in __fuse_get_req()
154 !fuse_block_alloc(fc, for_background)); in __fuse_get_req()
162 if (!fc->connected) in __fuse_get_req()
169 wake_up(&fc->blocked_waitq); in __fuse_get_req()
179 atomic_dec(&fc->num_waiting); in __fuse_get_req()
[all …]
Dinode.c129 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_evict_inode() local
131 fuse_queue_forget(fc, fi->forget, fi->nodeid, fi->nlookup); in fuse_evict_inode()
160 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes_common() local
163 fi->attr_version = ++fc->attr_version; in fuse_change_attributes_common()
190 if (!(fc->flags & FUSE_DEFAULT_PERMISSIONS)) in fuse_change_attributes_common()
199 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes() local
204 spin_lock(&fc->lock); in fuse_change_attributes()
206 spin_unlock(&fc->lock); in fuse_change_attributes()
215 spin_unlock(&fc->lock); in fuse_change_attributes()
223 } else if (fc->auto_inval_data) { in fuse_change_attributes()
[all …]
Dcontrol.c24 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
[all …]
Ddir.c19 struct fuse_conn *fc = get_fuse_conn(dir); in fuse_use_readdirplus() local
22 if (!fc->do_readdirplus) in fuse_use_readdirplus()
24 if (!fc->readdirplus_auto) in fuse_use_readdirplus()
138 static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_req *req, in fuse_lookup_init() argument
149 if (fc->minor < 9) in fuse_lookup_init()
156 u64 fuse_get_attr_version(struct fuse_conn *fc) in fuse_get_attr_version() argument
164 spin_lock(&fc->lock); in fuse_get_attr_version()
165 curr_version = fc->attr_version; in fuse_get_attr_version()
166 spin_unlock(&fc->lock); in fuse_get_attr_version()
184 struct fuse_conn *fc; in fuse_dentry_revalidate() local
[all …]
Dfile.c23 static int fuse_send_open(struct fuse_conn *fc, u64 nodeid, struct file *file, in fuse_send_open() argument
30 req = fuse_get_req_nopages(fc); in fuse_send_open()
36 if (!fc->atomic_o_trunc) in fuse_send_open()
46 fuse_request_send(fc, req); in fuse_send_open()
48 fuse_put_request(fc, req); in fuse_send_open()
53 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc) in fuse_file_alloc() argument
61 ff->fc = fc; in fuse_file_alloc()
73 spin_lock(&fc->lock); in fuse_file_alloc()
74 ff->kh = ++fc->khctr; in fuse_file_alloc()
75 spin_unlock(&fc->lock); in fuse_file_alloc()
[all …]
Dcuse.c58 struct fuse_conn fc; /* fuse connection */ member
70 static struct cuse_conn *fc_to_cc(struct fuse_conn *fc) in fc_to_cc() argument
72 return container_of(fc, struct cuse_conn, fc); in fc_to_cc()
125 fuse_conn_get(&pos->fc); in cuse_open()
139 rc = fuse_do_open(&cc->fc, 0, file, 0); in cuse_open()
141 fuse_conn_put(&cc->fc); in cuse_open()
148 struct fuse_conn *fc = ff->fc; in cuse_release() local
151 fuse_conn_put(fc); in cuse_release()
160 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_ioctl()
173 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_compat_ioctl()
[all …]
Dfuse_i.h125 struct fuse_conn *fc; member
636 void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget,
655 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc);
676 int fuse_notify_poll_wakeup(struct fuse_conn *fc,
737 struct fuse_req *fuse_get_req(struct fuse_conn *fc, unsigned npages);
738 struct fuse_req *fuse_get_req_for_background(struct fuse_conn *fc,
750 static inline struct fuse_req *fuse_get_req_nopages(struct fuse_conn *fc) in fuse_get_req_nopages() argument
752 return fuse_get_req(fc, 0); in fuse_get_req_nopages()
758 struct fuse_req *fuse_get_req_nofail_nopages(struct fuse_conn *fc,
765 void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req);
[all …]
/fs/ceph/
Dcaps.c952 struct ceph_mds_caps *fc; in send_cap_msg() local
963 msg = ceph_msg_new(CEPH_MSG_CLIENT_CAPS, sizeof(*fc), GFP_NOFS, false); in send_cap_msg()
969 fc = msg->front.iov_base; in send_cap_msg()
970 memset(fc, 0, sizeof(*fc)); in send_cap_msg()
972 fc->cap_id = cpu_to_le64(cid); in send_cap_msg()
973 fc->op = cpu_to_le32(op); in send_cap_msg()
974 fc->seq = cpu_to_le32(seq); in send_cap_msg()
975 fc->issue_seq = cpu_to_le32(issue_seq); in send_cap_msg()
976 fc->migrate_seq = cpu_to_le32(mseq); in send_cap_msg()
977 fc->caps = cpu_to_le32(caps); in send_cap_msg()
[all …]