Home
last modified time | relevance | path

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

/fs/ocfs2/
Daops.c915 static void ocfs2_free_write_ctxt(struct ocfs2_write_ctxt *wc) in ocfs2_free_write_ctxt() argument
924 if (wc->w_target_locked) { in ocfs2_free_write_ctxt()
925 BUG_ON(!wc->w_target_page); in ocfs2_free_write_ctxt()
926 for (i = 0; i < wc->w_num_pages; i++) { in ocfs2_free_write_ctxt()
927 if (wc->w_target_page == wc->w_pages[i]) { in ocfs2_free_write_ctxt()
928 wc->w_pages[i] = NULL; in ocfs2_free_write_ctxt()
932 mark_page_accessed(wc->w_target_page); in ocfs2_free_write_ctxt()
933 page_cache_release(wc->w_target_page); in ocfs2_free_write_ctxt()
935 ocfs2_unlock_and_free_pages(wc->w_pages, wc->w_num_pages); in ocfs2_free_write_ctxt()
937 brelse(wc->w_di_bh); in ocfs2_free_write_ctxt()
[all …]
/fs/ntfs/
Dunistr.c264 wchar_t wc; in ntfs_nlstoucs() local
273 &wc); in ntfs_nlstoucs()
276 if (likely(wc)) { in ntfs_nlstoucs()
277 ucs[o++] = cpu_to_le16(wc); in ntfs_nlstoucs()
341 int i, o, ns_len, wc; in ntfs_ucstonls() local
348 wc = -ENAMETOOLONG; in ntfs_ucstonls()
358 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
360 if (wc > 0) { in ntfs_ucstonls()
361 o += wc; in ntfs_ucstonls()
363 } else if (!wc) in ntfs_ucstonls()
[all …]
/fs/btrfs/
Dextent-tree.c6801 struct walk_control *wc, in reada_walk_down() argument
6816 if (path->slots[wc->level] < wc->reada_slot) { in reada_walk_down()
6817 wc->reada_count = wc->reada_count * 2 / 3; in reada_walk_down()
6818 wc->reada_count = max(wc->reada_count, 2); in reada_walk_down()
6820 wc->reada_count = wc->reada_count * 3 / 2; in reada_walk_down()
6821 wc->reada_count = min_t(int, wc->reada_count, in reada_walk_down()
6825 eb = path->nodes[wc->level]; in reada_walk_down()
6827 blocksize = btrfs_level_size(root, wc->level - 1); in reada_walk_down()
6829 for (slot = path->slots[wc->level]; slot < nritems; slot++) { in reada_walk_down()
6830 if (nread >= wc->reada_count) in reada_walk_down()
[all …]
Dtree-log.c270 struct walk_control *wc, u64 gen);
278 struct walk_control *wc, u64 gen) in process_one_buffer() argument
282 if (wc->pin) in process_one_buffer()
287 if (wc->write) in process_one_buffer()
289 if (wc->wait) in process_one_buffer()
1947 struct walk_control *wc, u64 gen) in replay_one_buffer() argument
1951 struct btrfs_root *root = wc->replay_dest; in replay_one_buffer()
1976 wc->stage == LOG_WALK_REPLAY_INODES) { in replay_one_buffer()
1984 ret = replay_dir_deletes(wc->trans, in replay_one_buffer()
1989 ret = overwrite_item(wc->trans, root, path, in replay_one_buffer()
[all …]
/fs/logfs/
Dreadwrite.c1341 struct write_control *wc) in logfs_write_i0() argument
1349 if (wc->ofs == 0) in logfs_write_i0()
1353 shadow = alloc_shadow(inode, bix, level, wc->ofs); in logfs_write_i0()
1354 if (wc->flags & WF_WRITE) in logfs_write_i0()
1356 if (wc->flags & WF_DELETE) in logfs_write_i0()
1370 wc->ofs = shadow->new_ofs; in logfs_write_i0()
1371 if (wc->ofs && full) in logfs_write_i0()
1372 wc->ofs |= LOGFS_FULLY_POPULATED; in logfs_write_i0()
1380 struct write_control wc = { in logfs_write_direct() local
1388 err = logfs_write_i0(inode, page, &wc); in logfs_write_direct()
[all …]
/fs/ocfs2/cluster/
Dheartbeat.c355 static inline void o2hb_bio_wait_init(struct o2hb_bio_wait_ctxt *wc) in o2hb_bio_wait_init() argument
357 atomic_set(&wc->wc_num_reqs, 1); in o2hb_bio_wait_init()
358 init_completion(&wc->wc_io_complete); in o2hb_bio_wait_init()
359 wc->wc_error = 0; in o2hb_bio_wait_init()
363 static inline void o2hb_bio_wait_dec(struct o2hb_bio_wait_ctxt *wc, in o2hb_bio_wait_dec() argument
369 if (atomic_dec_and_test(&wc->wc_num_reqs)) { in o2hb_bio_wait_dec()
371 complete(&wc->wc_io_complete); in o2hb_bio_wait_dec()
377 struct o2hb_bio_wait_ctxt *wc) in o2hb_wait_on_io() argument
379 o2hb_bio_wait_dec(wc, 1); in o2hb_wait_on_io()
380 wait_for_completion(&wc->wc_io_complete); in o2hb_wait_on_io()
[all …]
/fs/fat/
Ddir.c214 wchar_t wc; in fat_short2lower_uni() local
216 charlen = t->char2uni(c, clen, &wc); in fat_short2lower_uni()
232 *uni = wc; in fat_short2lower_uni()