Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 19 of 19) sorted by relevance

/fs/btrfs/
Dcompression.c115 struct compressed_bio *cb, in check_compressed_csum() argument
124 u32 *cb_sum = &cb->sums; in check_compressed_csum()
129 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum()
130 page = cb->compressed_pages[i]; in check_compressed_csum()
143 csum, *cb_sum, cb->mirror_num); in check_compressed_csum()
168 struct compressed_bio *cb = bio->bi_private; in end_compressed_bio_read() local
175 cb->errors = 1; in end_compressed_bio_read()
180 if (!atomic_dec_and_test(&cb->pending_bios)) in end_compressed_bio_read()
183 inode = cb->inode; in end_compressed_bio_read()
184 ret = check_compressed_csum(inode, cb, (u64)bio->bi_sector << 9); in end_compressed_bio_read()
[all …]
/fs/ntfs/
Dcompress.c179 u8 *cb = cb_start; /* Current position in cb. */ in ntfs_decompress() local
180 u8 *cb_sb_start = cb; /* Beginning of the current sb in the cb. */ in ntfs_decompress()
207 cb - cb_start); in ntfs_decompress()
214 if (cb == cb_end || !le16_to_cpup((le16*)cb) || in ntfs_decompress()
259 if (cb + 6 > cb_end) in ntfs_decompress()
263 cb_sb_start = cb; in ntfs_decompress()
264 cb_sb_end = cb_sb_start + (le16_to_cpup((le16*)cb) & NTFS_SB_SIZE_MASK) in ntfs_decompress()
273 cb = cb_sb_end; in ntfs_decompress()
286 if (!(le16_to_cpup((le16*)cb) & NTFS_SB_IS_COMPRESSED)) { in ntfs_decompress()
291 cb += 2; in ntfs_decompress()
[all …]
/fs/dlm/
Dlowcomms.c70 static void cbuf_add(struct cbuf *cb, int n) in cbuf_add() argument
72 cb->len += n; in cbuf_add()
75 static int cbuf_data(struct cbuf *cb) in cbuf_data() argument
77 return ((cb->base + cb->len) & cb->mask); in cbuf_data()
80 static void cbuf_init(struct cbuf *cb, int size) in cbuf_init() argument
82 cb->base = cb->len = 0; in cbuf_init()
83 cb->mask = size-1; in cbuf_init()
86 static void cbuf_eat(struct cbuf *cb, int n) in cbuf_eat() argument
88 cb->len -= n; in cbuf_eat()
89 cb->base += n; in cbuf_eat()
[all …]
/fs/afs/
Dcmservice.c164 struct afs_callback *cb; in afs_deliver_cb_callback() local
216 cb = call->request; in afs_deliver_cb_callback()
218 for (loop = call->count; loop > 0; loop--, cb++) { in afs_deliver_cb_callback()
219 cb->fid.vid = ntohl(*bp++); in afs_deliver_cb_callback()
220 cb->fid.vnode = ntohl(*bp++); in afs_deliver_cb_callback()
221 cb->fid.unique = ntohl(*bp++); in afs_deliver_cb_callback()
222 cb->type = AFSCM_CB_UNTYPED; in afs_deliver_cb_callback()
258 cb = call->request; in afs_deliver_cb_callback()
260 for (loop = call->count; loop > 0; loop--, cb++) { in afs_deliver_cb_callback()
261 cb->version = ntohl(*bp++); in afs_deliver_cb_callback()
[all …]
Dcallback.c225 struct afs_callback *cb; in afs_do_give_up_callback() local
229 cb = &server->cb_break[server->cb_break_head]; in afs_do_give_up_callback()
230 cb->fid = vnode->fid; in afs_do_give_up_callback()
231 cb->version = vnode->cb_version; in afs_do_give_up_callback()
232 cb->expiry = vnode->cb_expiry; in afs_do_give_up_callback()
233 cb->type = vnode->cb_type; in afs_do_give_up_callback()
Dinode.c121 struct afs_callback *cb) in afs_iget() argument
171 if (!cb) { in afs_iget()
179 vnode->cb_version = cb->version; in afs_iget()
180 vnode->cb_expiry = cb->expiry; in afs_iget()
181 vnode->cb_type = cb->type; in afs_iget()
Dfsclient.c139 struct afs_callback *cb) in xdr_decode_AFSCallBack_raw() argument
143 cb->version = ntohl(*bp++); in xdr_decode_AFSCallBack_raw()
144 cb->expiry = ntohl(*bp++); in xdr_decode_AFSCallBack_raw()
145 cb->type = ntohl(*bp++); in xdr_decode_AFSCallBack_raw()
588 struct afs_callback *cb = in afs_fs_give_up_callbacks() local
591 *bp++ = htonl(cb->fid.vid); in afs_fs_give_up_callbacks()
592 *bp++ = htonl(cb->fid.vnode); in afs_fs_give_up_callbacks()
593 *bp++ = htonl(cb->fid.unique); in afs_fs_give_up_callbacks()
594 *tp++ = htonl(cb->version); in afs_fs_give_up_callbacks()
595 *tp++ = htonl(cb->expiry); in afs_fs_give_up_callbacks()
[all …]
Ddir.c729 struct afs_callback cb; in afs_mkdir() local
754 mode, &fid, &status, &cb, &server); in afs_mkdir()
758 inode = afs_iget(dir->i_sb, key, &fid, &status, &cb); in afs_mkdir()
914 struct afs_callback cb; in afs_create() local
939 mode, &fid, &status, &cb, &server); in afs_create()
943 inode = afs_iget(dir->i_sb, key, &fid, &status, &cb); in afs_create()
/fs/gfs2/
Dlocking.c27 lm_callback_t cb, void *cb_data,
49 lm_callback_t cb, void *cb_data, in nolock_mount() argument
152 lm_callback_t cb, void *cb_data, in gfs2_mount_lockproto() argument
196 error = lw->lw_ops->lm_mount(table_name, host_data, cb, cb_data, in gfs2_mount_lockproto()
/fs/nfsd/
Dnfs4callback.c368 struct nfs4_callback *cb = &clp->cl_callback; in do_probe_callback() local
381 .prognumber = cb->cb_prog, in do_probe_callback()
402 addr.sin_port = htons(cb->cb_port); in do_probe_callback()
403 addr.sin_addr.s_addr = htonl(cb->cb_addr); in do_probe_callback()
418 cb->cb_client = client; in do_probe_callback()
419 atomic_set(&cb->cb_set, 1); in do_probe_callback()
Dnfs4idmap.c149 idtoname_match(struct cache_head *ca, struct cache_head *cb) in idtoname_match() argument
152 struct ent *b = container_of(cb, struct ent, h); in idtoname_match()
328 nametoid_match(struct cache_head *ca, struct cache_head *cb) in nametoid_match() argument
331 struct ent *b = container_of(cb, struct ent, h); in nametoid_match()
Dnfs4state.c195 struct nfs4_callback *cb = &stp->st_stateowner->so_client->cl_callback; in alloc_init_deleg() local
217 dp->dl_recall.cbr_ident = cb->cb_ident; in alloc_init_deleg()
668 struct nfs4_callback *cb = &clp->cl_callback; in gen_callback() local
675 &cb->cb_addr, &cb->cb_port))) in gen_callback()
677 cb->cb_prog = se->se_callback_prog; in gen_callback()
678 cb->cb_ident = se->se_callback_ident; in gen_callback()
1637 struct nfs4_callback *cb = &sop->so_client->cl_callback; in nfs4_open_delegation() local
1645 if (!atomic_read(&cb->cb_set)) in nfs4_open_delegation()
1656 if (!atomic_read(&cb->cb_set) || !sop->so_confirmed) in nfs4_open_delegation()
/fs/cifs/
Dsmbdes.c245 char *cb; /* cb[32] */ in dohash() local
256 cb = erk+48; in dohash()
257 pcb = cb+32; in dohash()
282 cb[j * 4 + k] = b[j][k]; in dohash()
283 permute(pcb, cb, perm5, 32); in dohash()
/fs/ocfs2/dlm/
Ddlmapi.h213 void dlm_setup_eviction_cb(struct dlm_eviction_cb *cb,
217 struct dlm_eviction_cb *cb);
218 void dlm_unregister_eviction_cb(struct dlm_eviction_cb *cb);
Ddlmdomain.c1807 struct dlm_eviction_cb *cb; in dlm_fire_domain_eviction_callbacks() local
1811 cb = list_entry(iter, struct dlm_eviction_cb, ec_item); in dlm_fire_domain_eviction_callbacks()
1813 cb->ec_func(node_num, cb->ec_data); in dlm_fire_domain_eviction_callbacks()
1818 void dlm_setup_eviction_cb(struct dlm_eviction_cb *cb, in dlm_setup_eviction_cb() argument
1822 INIT_LIST_HEAD(&cb->ec_item); in dlm_setup_eviction_cb()
1823 cb->ec_func = f; in dlm_setup_eviction_cb()
1824 cb->ec_data = data; in dlm_setup_eviction_cb()
1829 struct dlm_eviction_cb *cb) in dlm_register_eviction_cb() argument
1832 list_add_tail(&cb->ec_item, &dlm->dlm_eviction_callbacks); in dlm_register_eviction_cb()
1837 void dlm_unregister_eviction_cb(struct dlm_eviction_cb *cb) in dlm_unregister_eviction_cb() argument
[all …]
/fs/gfs2/locking/dlm/
Dmount.c15 static struct gdlm_ls *init_gdlm(lm_callback_t cb, struct gfs2_sbd *sdp, in init_gdlm() argument
25 ls->fscb = cb; in init_gdlm()
118 lm_callback_t cb, void *cb_data, in gdlm_mount() argument
129 ls = init_gdlm(cb, cb_data, flags, table_name); in gdlm_mount()
Dlock.c272 unsigned int cb = 0; in process_blocking() local
276 cb = LM_CB_NEED_E; in process_blocking()
279 cb = LM_CB_NEED_D; in process_blocking()
282 cb = LM_CB_NEED_S; in process_blocking()
288 ls->fscb(ls->sdp, cb, &lp->lockname); in process_blocking()
/fs/xfs/
Dxfs_log.c444 xfs_log_callback_t *cb) in xfs_log_notify() argument
454 cb->cb_next = NULL; in xfs_log_notify()
455 *(iclog->ic_callback_tail) = cb; in xfs_log_notify()
456 iclog->ic_callback_tail = &(cb->cb_next); in xfs_log_notify()
2141 xfs_log_callback_t *cb, *cb_next; in xlog_state_do_callback() local
2258 cb = iclog->ic_callback; in xlog_state_do_callback()
2259 while (cb) { in xlog_state_do_callback()
2265 for (; cb; cb = cb_next) { in xlog_state_do_callback()
2266 cb_next = cb->cb_next; in xlog_state_do_callback()
2267 cb->cb_func(cb->cb_arg, aborted); in xlog_state_do_callback()
[all …]
Dxfs_buf_item.c924 void (*cb)(xfs_buf_t *, xfs_log_item_t *), in xfs_buf_attach_iodone()
932 lip->li_cb = cb; in xfs_buf_attach_iodone()