Lines Matching refs:i_size
107 loff_t i_size = i_size_read(inode); in do_readpage() local
110 inode->i_ino, page->index, i_size, page->flags); in do_readpage()
117 beyond = (i_size + UBIFS_BLOCK_SIZE - 1) >> UBIFS_BLOCK_SHIFT; in do_readpage()
147 int ilen = i_size & (UBIFS_BLOCK_SIZE - 1); in do_readpage()
225 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in write_begin_slow()
229 inode->i_ino, pos, len, inode->i_size); in write_begin_slow()
429 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in ubifs_write_begin()
433 ubifs_assert(c, ubifs_inode(inode)->ui_size == inode->i_size); in ubifs_write_begin()
544 int appending = !!(end_pos > inode->i_size); in ubifs_write_end()
547 inode->i_ino, pos, page->index, len, copied, inode->i_size); in ubifs_write_end()
611 loff_t i_size = i_size_read(inode); in populate_page() local
617 inode->i_ino, page->index, i_size, page->flags); in populate_page()
621 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page()
622 if (!i_size || page->index > end_index) { in populate_page()
680 int len = i_size & (PAGE_SIZE - 1); in populate_page()
1008 loff_t i_size = i_size_read(inode), synced_i_size; in ubifs_writepage() local
1009 pgoff_t end_index = i_size >> PAGE_SHIFT; in ubifs_writepage()
1010 int err, len = i_size & (PAGE_SIZE - 1); in ubifs_writepage()
1057 if (i_size > synced_i_size) { in ubifs_writepage()
1117 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation()
1190 ui->ui_size = inode->i_size; in do_truncation()
1232 dbg_gen("size %lld -> %lld", inode->i_size, new_size); in do_setattr()
1241 ui->ui_size = inode->i_size; in do_setattr()
1284 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) in ubifs_setattr()