Lines Matching refs:jhead

104 static int reserve_space(struct ubifs_info *c, int jhead, int len)  in reserve_space()  argument
107 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space()
115 squeeze = (jhead == BASEHD); in reserve_space()
117 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
145 dbg_jnl("no free space in jhead %s, run GC", dbg_jhead(jhead)); in reserve_space()
161 dbg_jhead(jhead)); in reserve_space()
171 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
172 dbg_jnl("got LEB %d for jhead %s", lnum, dbg_jhead(jhead)); in reserve_space()
203 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space()
244 static int write_node(struct ubifs_info *c, int jhead, void *node, int len, in write_node() argument
247 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in write_node()
249 ubifs_assert(c, jhead != GCHD); in write_node()
251 *lnum = c->jheads[jhead].wbuf.lnum; in write_node()
252 *offs = c->jheads[jhead].wbuf.offs + c->jheads[jhead].wbuf.used; in write_node()
255 dbg_jhead(jhead), *lnum, *offs, len); in write_node()
275 static int write_head(struct ubifs_info *c, int jhead, void *buf, int len, in write_head() argument
279 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in write_head()
281 ubifs_assert(c, jhead != GCHD); in write_head()
283 *lnum = c->jheads[jhead].wbuf.lnum; in write_head()
284 *offs = c->jheads[jhead].wbuf.offs + c->jheads[jhead].wbuf.used; in write_head()
286 dbg_jhead(jhead), *lnum, *offs, len); in write_head()
312 static int make_reservation(struct ubifs_info *c, int jhead, int len) in make_reservation() argument
318 err = reserve_space(c, jhead, len); in make_reservation()
374 len, jhead, err); in make_reservation()
396 static inline void release_head(struct ubifs_info *c, int jhead) in release_head() argument
398 mutex_unlock(&c->jheads[jhead].wbuf.io_mutex); in release_head()