Home
last modified time | relevance | path

Searched refs:wc (Results 1 – 7 of 7) sorted by relevance

/fs/ocfs2/
Daops.c803 static void ocfs2_unlock_pages(struct ocfs2_write_ctxt *wc) in ocfs2_unlock_pages() argument
812 if (wc->w_target_locked) { in ocfs2_unlock_pages()
813 BUG_ON(!wc->w_target_page); in ocfs2_unlock_pages()
814 for (i = 0; i < wc->w_num_pages; i++) { in ocfs2_unlock_pages()
815 if (wc->w_target_page == wc->w_pages[i]) { in ocfs2_unlock_pages()
816 wc->w_pages[i] = NULL; in ocfs2_unlock_pages()
820 mark_page_accessed(wc->w_target_page); in ocfs2_unlock_pages()
821 put_page(wc->w_target_page); in ocfs2_unlock_pages()
823 ocfs2_unlock_and_free_pages(wc->w_pages, wc->w_num_pages); in ocfs2_unlock_pages()
842 struct ocfs2_write_ctxt *wc) in ocfs2_free_write_ctxt() argument
[all …]
/fs/ntfs/
Dunistr.c250 wchar_t wc; in ntfs_nlstoucs() local
259 &wc); in ntfs_nlstoucs()
262 if (likely(wc)) { in ntfs_nlstoucs()
263 ucs[o++] = cpu_to_le16(wc); in ntfs_nlstoucs()
327 int i, o, ns_len, wc; in ntfs_ucstonls() local
334 wc = -ENAMETOOLONG; in ntfs_ucstonls()
344 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
346 if (wc > 0) { in ntfs_ucstonls()
347 o += wc; in ntfs_ucstonls()
349 } else if (!wc) in ntfs_ucstonls()
[all …]
/fs/btrfs/
Dextent-tree.c4638 struct walk_control *wc, in reada_walk_down() argument
4653 if (path->slots[wc->level] < wc->reada_slot) { in reada_walk_down()
4654 wc->reada_count = wc->reada_count * 2 / 3; in reada_walk_down()
4655 wc->reada_count = max(wc->reada_count, 2); in reada_walk_down()
4657 wc->reada_count = wc->reada_count * 3 / 2; in reada_walk_down()
4658 wc->reada_count = min_t(int, wc->reada_count, in reada_walk_down()
4662 eb = path->nodes[wc->level]; in reada_walk_down()
4665 for (slot = path->slots[wc->level]; slot < nritems; slot++) { in reada_walk_down()
4666 if (nread >= wc->reada_count) in reada_walk_down()
4673 if (slot == path->slots[wc->level]) in reada_walk_down()
[all …]
Dtree-log.c294 struct walk_control *wc, u64 gen, int level);
302 struct walk_control *wc, u64 gen, int level) in process_one_buffer() argument
317 if (wc->pin) in process_one_buffer()
322 if (wc->pin && btrfs_header_level(eb) == 0) in process_one_buffer()
324 if (wc->write) in process_one_buffer()
326 if (wc->wait) in process_one_buffer()
2581 struct walk_control *wc, u64 gen, int level) in replay_one_buffer() argument
2585 struct btrfs_root *root = wc->replay_dest; in replay_one_buffer()
2609 wc->stage == LOG_WALK_REPLAY_INODES) { in replay_one_buffer()
2624 wc->ignore_cur_inode = true; in replay_one_buffer()
[all …]
/fs/cifs/
Dsmbdirect.c266 static void send_done(struct ib_cq *cq, struct ib_wc *wc) in send_done() argument
270 container_of(wc->wr_cqe, struct smbd_request, cqe); in send_done()
273 request, wc->status); in send_done()
275 if (wc->status != IB_WC_SUCCESS || wc->opcode != IB_WC_SEND) { in send_done()
277 wc->status, wc->opcode); in send_done()
482 static void recv_done(struct ib_cq *cq, struct ib_wc *wc) in recv_done() argument
486 container_of(wc->wr_cqe, struct smbd_response, cqe); in recv_done()
492 response, response->type, wc->status, wc->opcode, in recv_done()
493 wc->byte_len, wc->pkey_index); in recv_done()
495 if (wc->status != IB_WC_SUCCESS || wc->opcode != IB_WC_RECV) { in recv_done()
[all …]
/fs/ocfs2/cluster/
Dheartbeat.c465 static inline void o2hb_bio_wait_init(struct o2hb_bio_wait_ctxt *wc) in o2hb_bio_wait_init() argument
467 atomic_set(&wc->wc_num_reqs, 1); in o2hb_bio_wait_init()
468 init_completion(&wc->wc_io_complete); in o2hb_bio_wait_init()
469 wc->wc_error = 0; in o2hb_bio_wait_init()
473 static inline void o2hb_bio_wait_dec(struct o2hb_bio_wait_ctxt *wc, in o2hb_bio_wait_dec() argument
479 if (atomic_dec_and_test(&wc->wc_num_reqs)) { in o2hb_bio_wait_dec()
481 complete(&wc->wc_io_complete); in o2hb_bio_wait_dec()
486 static void o2hb_wait_on_io(struct o2hb_bio_wait_ctxt *wc) in o2hb_wait_on_io() argument
488 o2hb_bio_wait_dec(wc, 1); in o2hb_wait_on_io()
489 wait_for_completion(&wc->wc_io_complete); in o2hb_wait_on_io()
[all …]
/fs/fat/
Ddir.c210 wchar_t wc; in fat_short2lower_uni() local
212 charlen = t->char2uni(c, clen, &wc); in fat_short2lower_uni()
228 *uni = wc; in fat_short2lower_uni()