Home
last modified time | relevance | path

Searched refs:jhead (Results 1 – 12 of 12) sorted by relevance

/linux-3.4.99/fs/ubifs/
Dlog.c79 int jhead; in ubifs_get_wbuf() local
93 jhead = bud->jhead; in ubifs_get_wbuf()
95 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
128 struct ubifs_jhead *jhead; in ubifs_add_bud() local
145 jhead = &c->jheads[bud->jhead]; in ubifs_add_bud()
146 list_add_tail(&bud->list, &jhead->buds_list); in ubifs_add_bud()
159 bud->start, dbg_jhead(bud->jhead), c->bud_bytes); in ubifs_add_bud()
176 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument
238 bud->jhead = jhead; in ubifs_add_bud_to_log()
243 ref->jhead = cpu_to_le32(jhead); in ubifs_add_bud_to_log()
[all …]
Djournal.c115 static int reserve_space(struct ubifs_info *c, int jhead, int len) in reserve_space() argument
118 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space()
126 squeeze = (jhead == BASEHD); in reserve_space()
128 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
156 dbg_jnl("no free space in jhead %s, run GC", dbg_jhead(jhead)); in reserve_space()
172 dbg_jhead(jhead)); in reserve_space()
182 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
183 dbg_jnl("got LEB %d for jhead %s", lnum, dbg_jhead(jhead)); in reserve_space()
214 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space()
255 static int write_node(struct ubifs_info *c, int jhead, void *node, int len, in write_node() argument
[all …]
Dreplay.c156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
487 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
550 lnum, b->bud->jhead, offs, is_last); in replay_bud()
559 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
745 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, in add_replay_bud() argument
751 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead); in add_replay_bud()
765 bud->jhead = jhead; in add_replay_bud()
791 unsigned int jhead = le32_to_cpu(ref->jhead); in validate_ref() local
798 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
806 if (bud->jhead == jhead && bud->start <= offs) in validate_ref()
[all …]
Dio.c443 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
461 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
505 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock()
576 dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_seek_nolock()
635 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
657 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
687 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); in ubifs_wbuf_write_nolock()
720 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock()
756 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock()
912 dbg_ntype(type), len, dbg_jhead(wbuf->jhead)); in ubifs_read_node_wbuf()
[all …]
Drecovery.c636 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument
639 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb()
643 dbg_rcvry("%d:%d, jhead %d, grouped %d", lnum, offs, jhead, grouped); in ubifs_recover_leb()
723 if (jhead == GCHD) { in ubifs_recover_leb()
1211 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
Dmisc.h141 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
Dubifs.h689 int jhead; member
713 int jhead; member
1521 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs);
1758 int offs, void *sbuf, int jhead);
Ddebug.h255 const char *dbg_jhead(int jhead);
369 static inline const char *dbg_jhead(int jhead) { return ""; } in dbg_jhead() argument
Dubifs-media.h730 __le32 jhead; member
Dgc.c660 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_garbage_collect()
926 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_gc_end_commit()
Ddebug.c208 const char *dbg_jhead(int jhead) in dbg_jhead() argument
210 switch (jhead) { in dbg_jhead()
456 le32_to_cpu(ref->jhead)); in dbg_dump_node()
685 dbg_jhead(c->jheads[i].wbuf.jhead), in dbg_dump_budg()
796 dbg_jhead(bud->jhead)); in dbg_dump_lprop()
Dsuper.c812 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()