/fs/fuse/ |
D | inode.c | 133 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_evict_inode() local 135 fuse_queue_forget(fc, fi->forget, fi->nodeid, fi->nlookup); in fuse_evict_inode() 164 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes_common() local 167 fi->attr_version = ++fc->attr_version; in fuse_change_attributes_common() 179 if (!fc->writeback_cache || !S_ISREG(inode->i_mode)) { in fuse_change_attributes_common() 197 if (!fc->default_permissions) in fuse_change_attributes_common() 206 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes() local 208 bool is_wb = fc->writeback_cache; in fuse_change_attributes() 212 spin_lock(&fc->lock); in fuse_change_attributes() 215 spin_unlock(&fc->lock); in fuse_change_attributes() [all …]
|
D | control.c | 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 [all …]
|
D | dev.c | 123 void fuse_set_initialized(struct fuse_conn *fc) in fuse_set_initialized() argument 127 fc->initialized = 1; in fuse_set_initialized() 130 static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background) in fuse_block_alloc() argument 132 return !fc->initialized || (for_background && fc->blocked); in fuse_block_alloc() 135 static struct fuse_req *__fuse_get_req(struct fuse_conn *fc, unsigned npages, in __fuse_get_req() argument 140 atomic_inc(&fc->num_waiting); in __fuse_get_req() 142 if (fuse_block_alloc(fc, for_background)) { in __fuse_get_req() 144 if (wait_event_killable_exclusive(fc->blocked_waitq, in __fuse_get_req() 145 !fuse_block_alloc(fc, for_background))) in __fuse_get_req() 152 if (!fc->connected) in __fuse_get_req() [all …]
|
D | file.c | 23 static int fuse_send_open(struct fuse_conn *fc, u64 nodeid, struct file *file, in fuse_send_open() argument 31 if (!fc->atomic_o_trunc) in fuse_send_open() 42 return fuse_simple_request(fc, &args); in fuse_send_open() 45 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc) in fuse_file_alloc() argument 53 ff->fc = fc; in fuse_file_alloc() 65 spin_lock(&fc->lock); in fuse_file_alloc() 66 ff->kh = ++fc->khctr; in fuse_file_alloc() 67 spin_unlock(&fc->lock); in fuse_file_alloc() 84 static void fuse_release_end(struct fuse_conn *fc, struct fuse_req *req) in fuse_release_end() argument 94 if (ff->fc->no_open) { in fuse_file_put() [all …]
|
D | dir.c | 21 struct fuse_conn *fc = get_fuse_conn(dir); in fuse_use_readdirplus() local 24 if (!fc->do_readdirplus) in fuse_use_readdirplus() 26 if (!fc->readdirplus_auto) in fuse_use_readdirplus() 142 static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_args *args, in fuse_lookup_init() argument 157 u64 fuse_get_attr_version(struct fuse_conn *fc) in fuse_get_attr_version() argument 165 spin_lock(&fc->lock); in fuse_get_attr_version() 166 curr_version = fc->attr_version; in fuse_get_attr_version() 167 spin_unlock(&fc->lock); in fuse_get_attr_version() 185 struct fuse_conn *fc; in fuse_dentry_revalidate() local 207 fc = get_fuse_conn(inode); in fuse_dentry_revalidate() [all …]
|
D | cuse.c | 58 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() 121 fuse_conn_get(&pos->fc); in cuse_open() 135 rc = fuse_do_open(&cc->fc, 0, file, 0); in cuse_open() 137 fuse_conn_put(&cc->fc); in cuse_open() 144 struct fuse_conn *fc = ff->fc; in cuse_release() local 147 fuse_conn_put(fc); in cuse_release() 156 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_ioctl() 169 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_compat_ioctl() [all …]
|
D | fuse_i.h | 125 struct fuse_conn *fc; member 433 struct fuse_conn *fc; member 718 void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, 737 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc); 758 int fuse_notify_poll_wakeup(struct fuse_conn *fc, 819 struct fuse_req *fuse_get_req(struct fuse_conn *fc, unsigned npages); 820 struct fuse_req *fuse_get_req_for_background(struct fuse_conn *fc, 831 struct fuse_req *fuse_get_req_nofail_nopages(struct fuse_conn *fc, 838 void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req); 843 void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req); [all …]
|
D | xattr.c | 17 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_setxattr() local 22 if (fc->no_setxattr) in fuse_setxattr() 37 err = fuse_simple_request(fc, &args); in fuse_setxattr() 39 fc->no_setxattr = 1; in fuse_setxattr() 52 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_getxattr() local 58 if (fc->no_getxattr) in fuse_getxattr() 80 ret = fuse_simple_request(fc, &args); in fuse_getxattr() 84 fc->no_getxattr = 1; in fuse_getxattr() 110 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_listxattr() local 116 if (!fuse_allow_current_process(fc)) in fuse_listxattr() [all …]
|
D | acl.c | 16 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_get_acl() local 22 if (!fc->posix_acl || fc->no_getxattr) in fuse_get_acl() 39 (size == -EOPNOTSUPP && fc->no_getxattr)) in fuse_get_acl() 52 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_set_acl() local 56 if (!fc->posix_acl || fc->no_setxattr) in fuse_set_acl()
|
/fs/ceph/ |
D | caps.c | 1007 struct ceph_mds_caps *fc; in send_cap_msg() local 1024 msg = ceph_msg_new(CEPH_MSG_CLIENT_CAPS, sizeof(*fc) + extra_len, in send_cap_msg() 1032 fc = msg->front.iov_base; in send_cap_msg() 1033 memset(fc, 0, sizeof(*fc)); in send_cap_msg() 1035 fc->cap_id = cpu_to_le64(cid); in send_cap_msg() 1036 fc->op = cpu_to_le32(op); in send_cap_msg() 1037 fc->seq = cpu_to_le32(seq); in send_cap_msg() 1038 fc->issue_seq = cpu_to_le32(issue_seq); in send_cap_msg() 1039 fc->migrate_seq = cpu_to_le32(mseq); in send_cap_msg() 1040 fc->caps = cpu_to_le32(caps); in send_cap_msg() [all …]
|