Lines Matching refs:ui

292 		struct ubifs_inode *ui = ubifs_inode(inode);  in write_begin_slow()  local
299 mutex_lock(&ui->ui_mutex); in write_begin_slow()
300 if (ui->dirty) in write_begin_slow()
305 ubifs_release_dirty_inode_budget(c, ui); in write_begin_slow()
326 struct ubifs_inode *ui, int appending) in allocate_budget() argument
338 mutex_lock(&ui->ui_mutex); in allocate_budget()
339 if (ui->dirty) in allocate_budget()
375 mutex_lock(&ui->ui_mutex); in allocate_budget()
376 if (!ui->dirty) in allocate_budget()
427 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_write_begin() local
471 err = allocate_budget(c, page, ui, appending); in ubifs_write_begin()
490 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_write_begin()
491 mutex_unlock(&ui->ui_mutex); in ubifs_write_begin()
521 struct ubifs_inode *ui, int appending) in cancel_budget() argument
524 if (!ui->dirty) in cancel_budget()
525 ubifs_release_dirty_inode_budget(c, ui); in cancel_budget()
526 mutex_unlock(&ui->ui_mutex); in cancel_budget()
541 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_write_end() local
561 cancel_budget(c, page, ui, appending); in ubifs_write_end()
580 ui->ui_size = end_pos; in ubifs_write_end()
587 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_write_end()
588 mutex_unlock(&ui->ui_mutex); in ubifs_write_end()
723 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_do_bulk_read() local
735 ui->read_in_a_row = 1; in ubifs_do_bulk_read()
736 ui->bulk_read = 0; in ubifs_do_bulk_read()
802 ui->last_page_read = offset + page_idx - 1; in ubifs_do_bulk_read()
814 ui->read_in_a_row = ui->bulk_read = 0; in ubifs_do_bulk_read()
831 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_bulk_read() local
832 pgoff_t index = page->index, last_page_read = ui->last_page_read; in ubifs_bulk_read()
836 ui->last_page_read = index; in ubifs_bulk_read()
844 if (!mutex_trylock(&ui->ui_mutex)) in ubifs_bulk_read()
849 ui->read_in_a_row = 1; in ubifs_bulk_read()
850 if (ui->bulk_read) in ubifs_bulk_read()
851 ui->bulk_read = 0; in ubifs_bulk_read()
855 if (!ui->bulk_read) { in ubifs_bulk_read()
856 ui->read_in_a_row += 1; in ubifs_bulk_read()
857 if (ui->read_in_a_row < 3) in ubifs_bulk_read()
860 ui->bulk_read = 1; in ubifs_bulk_read()
889 mutex_unlock(&ui->ui_mutex); in ubifs_bulk_read()
912 struct ubifs_inode *ui = ubifs_inode(inode); in do_writepage() local
913 spin_lock(&ui->ui_lock); in do_writepage()
914 ubifs_assert(c, page->index <= ui->synced_i_size >> PAGE_SHIFT); in do_writepage()
915 spin_unlock(&ui->ui_lock); in do_writepage()
1009 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_writepage() local
1025 spin_lock(&ui->ui_lock); in ubifs_writepage()
1026 synced_i_size = ui->synced_i_size; in ubifs_writepage()
1027 spin_unlock(&ui->ui_lock); in ubifs_writepage()
1115 struct ubifs_inode *ui = ubifs_inode(inode); in do_truncation() local
1185 mutex_lock(&ui->ui_mutex); in do_truncation()
1186 ui->ui_size = inode->i_size; in do_truncation()
1192 mutex_unlock(&ui->ui_mutex); in do_truncation()
1219 struct ubifs_inode *ui = ubifs_inode(inode); in do_setattr() local
1221 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in do_setattr()
1232 mutex_lock(&ui->ui_mutex); in do_setattr()
1237 ui->ui_size = inode->i_size; in do_setattr()
1242 release = ui->dirty; in do_setattr()
1251 mutex_unlock(&ui->ui_mutex); in do_setattr()
1375 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_update_time() local
1378 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_update_time()
1388 mutex_lock(&ui->ui_mutex); in ubifs_update_time()
1396 release = ui->dirty; in ubifs_update_time()
1398 mutex_unlock(&ui->ui_mutex); in ubifs_update_time()
1415 struct ubifs_inode *ui = ubifs_inode(inode); in update_mctime() local
1421 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in update_mctime()
1427 mutex_lock(&ui->ui_mutex); in update_mctime()
1429 release = ui->dirty; in update_mctime()
1431 mutex_unlock(&ui->ui_mutex); in update_mctime()
1577 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_vm_page_mkwrite() local
1579 mutex_lock(&ui->ui_mutex); in ubifs_vm_page_mkwrite()
1581 release = ui->dirty; in ubifs_vm_page_mkwrite()
1583 mutex_unlock(&ui->ui_mutex); in ubifs_vm_page_mkwrite()
1585 ubifs_release_dirty_inode_budget(c, ui); in ubifs_vm_page_mkwrite()
1622 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_get_link() local
1625 return ui->data; in ubifs_get_link()
1630 return fscrypt_get_symlink(inode, ui->data, ui->data_len, done); in ubifs_get_link()