Lines Matching refs:wbuf
101 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space() local
111 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
118 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
119 if (wbuf->lnum != -1 && avail >= len) in reserve_space()
140 mutex_unlock(&wbuf->io_mutex); in reserve_space()
165 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
167 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
169 if (wbuf->lnum != -1 && avail >= len) { in reserve_space()
176 lnum, wbuf->lnum, wbuf->offs + wbuf->used); in reserve_space()
194 err = ubifs_wbuf_sync_nolock(wbuf); in reserve_space()
200 err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs); in reserve_space()
207 mutex_unlock(&wbuf->io_mutex); in reserve_space()
221 mutex_unlock(&wbuf->io_mutex); in reserve_space()
272 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in write_head() local
276 *lnum = c->jheads[jhead].wbuf.lnum; in write_head()
277 *offs = c->jheads[jhead].wbuf.offs + c->jheads[jhead].wbuf.used; in write_head()
287 err = ubifs_wbuf_write_nolock(wbuf, buf, len); in write_head()
291 err = ubifs_wbuf_sync_nolock(wbuf); in write_head()
397 mutex_unlock(&c->jheads[jhead].wbuf.io_mutex); in release_head()
640 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_update() local
642 ubifs_wbuf_add_ino_nolock(wbuf, inode->i_ino); in ubifs_jnl_update()
643 ubifs_wbuf_add_ino_nolock(wbuf, dir->i_ino); in ubifs_jnl_update()
803 ubifs_wbuf_add_ino_nolock(&c->jheads[DATAHD].wbuf, key_inum(c, key)); in ubifs_jnl_write_data()
938 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, in ubifs_jnl_write_inode()
1147 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_xrename() local
1149 ubifs_wbuf_add_ino_nolock(wbuf, fst_dir->i_ino); in ubifs_jnl_xrename()
1150 ubifs_wbuf_add_ino_nolock(wbuf, snd_dir->i_ino); in ubifs_jnl_xrename()
1348 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_rename() local
1350 ubifs_wbuf_add_ino_nolock(wbuf, new_dir->i_ino); in ubifs_jnl_rename()
1351 ubifs_wbuf_add_ino_nolock(wbuf, old_dir->i_ino); in ubifs_jnl_rename()
1353 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, in ubifs_jnl_rename()
1606 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, inum); in ubifs_jnl_truncate()
1728 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, host->i_ino); in ubifs_jnl_delete_xattr()
1834 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_change_xattr() local
1836 ubifs_wbuf_add_ino_nolock(wbuf, host->i_ino); in ubifs_jnl_change_xattr()
1837 ubifs_wbuf_add_ino_nolock(wbuf, inode->i_ino); in ubifs_jnl_change_xattr()