Lines Matching refs:iloc
30 struct ext4_iloc *iloc) in get_max_inline_xattr_value_size() argument
56 raw_inode = ext4_raw_inode(iloc); in get_max_inline_xattr_value_size()
107 struct ext4_iloc iloc; in ext4_get_max_inline_size() local
112 error = ext4_get_inode_loc(inode, &iloc); in ext4_get_max_inline_size()
121 max_inline_size = get_max_inline_xattr_value_size(inode, &iloc); in ext4_get_max_inline_size()
124 brelse(iloc.bh); in ext4_get_max_inline_size()
151 error = ext4_get_inode_loc(inode, &is.iloc); in ext4_find_inline_data_nolock()
167 (void *)ext4_raw_inode(&is.iloc)); in ext4_find_inline_data_nolock()
172 brelse(is.iloc.bh); in ext4_find_inline_data_nolock()
178 struct ext4_iloc *iloc) in ext4_read_inline_data() argument
193 raw_inode = ext4_raw_inode(iloc); in ext4_read_inline_data()
222 static void ext4_write_inline_data(struct inode *inode, struct ext4_iloc *iloc, in ext4_write_inline_data() argument
236 raw_inode = ext4_raw_inode(iloc); in ext4_write_inline_data()
274 error = ext4_get_inode_loc(inode, &is.iloc); in ext4_create_inline_data()
278 BUFFER_TRACE(is.iloc.bh, "get_write_access"); in ext4_create_inline_data()
279 error = ext4_journal_get_write_access(handle, is.iloc.bh); in ext4_create_inline_data()
309 memset((void *)ext4_raw_inode(&is.iloc)->i_block, in ext4_create_inline_data()
313 (void *)ext4_raw_inode(&is.iloc)); in ext4_create_inline_data()
317 get_bh(is.iloc.bh); in ext4_create_inline_data()
318 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc); in ext4_create_inline_data()
321 brelse(is.iloc.bh); in ext4_create_inline_data()
342 error = ext4_get_inode_loc(inode, &is.iloc); in ext4_update_inline_data()
364 BUFFER_TRACE(is.iloc.bh, "get_write_access"); in ext4_update_inline_data()
365 error = ext4_journal_get_write_access(handle, is.iloc.bh); in ext4_update_inline_data()
378 (void *)ext4_raw_inode(&is.iloc)); in ext4_update_inline_data()
382 get_bh(is.iloc.bh); in ext4_update_inline_data()
383 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc); in ext4_update_inline_data()
387 brelse(is.iloc.bh); in ext4_update_inline_data()
433 error = ext4_get_inode_loc(inode, &is.iloc); in ext4_destroy_inline_data_nolock()
441 BUFFER_TRACE(is.iloc.bh, "get_write_access"); in ext4_destroy_inline_data_nolock()
442 error = ext4_journal_get_write_access(handle, is.iloc.bh); in ext4_destroy_inline_data_nolock()
450 memset((void *)ext4_raw_inode(&is.iloc)->i_block, in ext4_destroy_inline_data_nolock()
463 get_bh(is.iloc.bh); in ext4_destroy_inline_data_nolock()
464 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc); in ext4_destroy_inline_data_nolock()
470 brelse(is.iloc.bh); in ext4_destroy_inline_data_nolock()
481 struct ext4_iloc iloc; in ext4_read_inline_page() local
493 ret = ext4_get_inode_loc(inode, &iloc); in ext4_read_inline_page()
499 ret = ext4_read_inline_data(inode, kaddr, len, &iloc); in ext4_read_inline_page()
504 brelse(iloc.bh); in ext4_read_inline_page()
546 struct ext4_iloc iloc; in ext4_convert_inline_data_to_extent() local
559 ret = ext4_get_inode_loc(inode, &iloc); in ext4_convert_inline_data_to_extent()
647 brelse(iloc.bh); in ext4_convert_inline_data_to_extent()
666 struct ext4_iloc iloc; in ext4_try_to_write_inline_data() local
671 ret = ext4_get_inode_loc(inode, &iloc); in ext4_try_to_write_inline_data()
693 brelse(iloc.bh); in ext4_try_to_write_inline_data()
697 ret = ext4_journal_get_write_access(handle, iloc.bh); in ext4_try_to_write_inline_data()
734 brelse(iloc.bh); in ext4_try_to_write_inline_data()
746 struct ext4_iloc iloc; in ext4_write_inline_data_end() local
755 ret = ext4_get_inode_loc(inode, &iloc); in ext4_write_inline_data_end()
772 ext4_write_inline_data(inode, &iloc, kaddr, pos, len); in ext4_write_inline_data_end()
779 brelse(iloc.bh); in ext4_write_inline_data_end()
792 struct ext4_iloc iloc; in ext4_journalled_write_inline_data() local
794 ret = ext4_get_inode_loc(inode, &iloc); in ext4_journalled_write_inline_data()
802 ext4_write_inline_data(inode, &iloc, kaddr, 0, len); in ext4_journalled_write_inline_data()
806 return iloc.bh; in ext4_journalled_write_inline_data()
886 struct ext4_iloc iloc; in ext4_da_write_inline_data_begin() local
889 ret = ext4_get_inode_loc(inode, &iloc); in ext4_da_write_inline_data_begin()
944 ret = ext4_journal_get_write_access(handle, iloc.bh); in ext4_da_write_inline_data_begin()
950 brelse(iloc.bh); in ext4_da_write_inline_data_begin()
959 brelse(iloc.bh); in ext4_da_write_inline_data_begin()
1037 struct ext4_iloc *iloc, in ext4_add_dirent_to_inline() argument
1043 err = ext4_find_dest_de(dir, inode, iloc->bh, inline_start, in ext4_add_dirent_to_inline()
1048 BUFFER_TRACE(iloc->bh, "get_write_access"); in ext4_add_dirent_to_inline()
1049 err = ext4_journal_get_write_access(handle, iloc->bh); in ext4_add_dirent_to_inline()
1054 ext4_show_inline_dir(dir, iloc->bh, inline_start, inline_size); in ext4_add_dirent_to_inline()
1074 struct ext4_iloc *iloc) in ext4_get_inline_xattr_pos() argument
1081 header = IHDR(inode, ext4_raw_inode(iloc)); in ext4_get_inline_xattr_pos()
1082 entry = (struct ext4_xattr_entry *)((void *)ext4_raw_inode(iloc) + in ext4_get_inline_xattr_pos()
1115 struct ext4_iloc *iloc) in ext4_update_inline_dir() argument
1119 int new_size = get_max_inline_xattr_value_size(dir, iloc); in ext4_update_inline_dir()
1129 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
1137 struct ext4_iloc *iloc, in ext4_restore_inline_data() argument
1149 ext4_write_inline_data(inode, iloc, buf, 0, inline_size); in ext4_restore_inline_data()
1202 struct ext4_iloc *iloc) in ext4_convert_inline_data_nolock() argument
1217 error = ext4_read_inline_data(inode, buf, inline_size, iloc); in ext4_convert_inline_data_nolock()
1226 error = ext4_check_all_de(inode, iloc->bh, in ext4_convert_inline_data_nolock()
1276 ext4_restore_inline_data(handle, inode, iloc, buf, inline_size); in ext4_convert_inline_data_nolock()
1294 struct ext4_iloc iloc; in ext4_try_add_inline_entry() local
1296 ret = ext4_get_inode_loc(dir, &iloc); in ext4_try_add_inline_entry()
1304 inline_start = (void *)ext4_raw_inode(&iloc)->i_block + in ext4_try_add_inline_entry()
1308 ret = ext4_add_dirent_to_inline(handle, fname, dir, inode, &iloc, in ext4_try_add_inline_entry()
1318 ret = ext4_update_inline_dir(handle, dir, &iloc); in ext4_try_add_inline_entry()
1327 inline_start = ext4_get_inline_xattr_pos(dir, &iloc); in ext4_try_add_inline_entry()
1330 inode, &iloc, inline_start, in ext4_try_add_inline_entry()
1342 ret = ext4_convert_inline_data_nolock(handle, dir, &iloc); in ext4_try_add_inline_entry()
1347 brelse(iloc.bh); in ext4_try_add_inline_entry()
1368 struct ext4_iloc iloc; in htree_inlinedir_to_tree() local
1373 ret = ext4_get_inode_loc(inode, &iloc); in htree_inlinedir_to_tree()
1392 ret = ext4_read_inline_data(inode, dir_buf, inline_size, &iloc); in htree_inlinedir_to_tree()
1429 iloc.bh, dir_buf, in htree_inlinedir_to_tree()
1456 brelse(iloc.bh); in htree_inlinedir_to_tree()
1478 struct ext4_iloc iloc; in ext4_read_inline_dir() local
1482 ret = ext4_get_inode_loc(inode, &iloc); in ext4_read_inline_dir()
1501 ret = ext4_read_inline_data(inode, dir_buf, inline_size, &iloc); in ext4_read_inline_dir()
1581 if (ext4_check_dir_entry(inode, file, de, iloc.bh, dir_buf, in ext4_read_inline_dir()
1594 brelse(iloc.bh); in ext4_read_inline_dir()
1602 struct ext4_iloc iloc; in ext4_get_first_inline_block() local
1604 *retval = ext4_get_inode_loc(inode, &iloc); in ext4_get_first_inline_block()
1608 *parent_de = (struct ext4_dir_entry_2 *)ext4_raw_inode(&iloc)->i_block; in ext4_get_first_inline_block()
1610 return iloc.bh; in ext4_get_first_inline_block()
1622 struct ext4_iloc iloc; in ext4_try_create_inline_dir() local
1625 ret = ext4_get_inode_loc(inode, &iloc); in ext4_try_create_inline_dir()
1637 de = (struct ext4_dir_entry_2 *)ext4_raw_inode(&iloc)->i_block; in ext4_try_create_inline_dir()
1647 brelse(iloc.bh); in ext4_try_create_inline_dir()
1657 struct ext4_iloc iloc; in ext4_find_inline_entry() local
1661 if (ext4_get_inode_loc(dir, &iloc)) in ext4_find_inline_entry()
1670 inline_start = (void *)ext4_raw_inode(&iloc)->i_block + in ext4_find_inline_entry()
1673 ret = ext4_search_dir(iloc.bh, inline_start, inline_size, in ext4_find_inline_entry()
1683 inline_start = ext4_get_inline_xattr_pos(dir, &iloc); in ext4_find_inline_entry()
1686 ret = ext4_search_dir(iloc.bh, inline_start, inline_size, in ext4_find_inline_entry()
1692 brelse(iloc.bh); in ext4_find_inline_entry()
1693 iloc.bh = NULL; in ext4_find_inline_entry()
1696 return iloc.bh; in ext4_find_inline_entry()
1706 struct ext4_iloc iloc; in ext4_delete_inline_entry() local
1709 err = ext4_get_inode_loc(dir, &iloc); in ext4_delete_inline_entry()
1719 if ((void *)de_del - ((void *)ext4_raw_inode(&iloc)->i_block) < in ext4_delete_inline_entry()
1721 inline_start = (void *)ext4_raw_inode(&iloc)->i_block + in ext4_delete_inline_entry()
1726 inline_start = ext4_get_inline_xattr_pos(dir, &iloc); in ext4_delete_inline_entry()
1741 ext4_show_inline_dir(dir, iloc.bh, inline_start, inline_size); in ext4_delete_inline_entry()
1746 brelse(iloc.bh); in ext4_delete_inline_entry()
1757 struct ext4_iloc *iloc, in ext4_get_inline_entry() argument
1767 inline_pos = (void *)ext4_raw_inode(iloc)->i_block; in ext4_get_inline_entry()
1770 inline_pos = ext4_get_inline_xattr_pos(inode, iloc); in ext4_get_inline_entry()
1784 struct ext4_iloc iloc; in empty_inline_dir() local
1791 err = ext4_get_inode_loc(dir, &iloc); in empty_inline_dir()
1804 de = (struct ext4_dir_entry_2 *)ext4_raw_inode(&iloc)->i_block; in empty_inline_dir()
1816 de = ext4_get_inline_entry(dir, &iloc, offset, in empty_inline_dir()
1819 iloc.bh, inline_pos, in empty_inline_dir()
1840 brelse(iloc.bh); in empty_inline_dir()
1859 struct ext4_iloc iloc; in ext4_inline_data_iomap() local
1865 error = ext4_get_inode_loc(inode, &iloc); in ext4_inline_data_iomap()
1869 addr = (__u64)iloc.bh->b_blocknr << inode->i_sb->s_blocksize_bits; in ext4_inline_data_iomap()
1870 addr += (char *)ext4_raw_inode(&iloc) - iloc.bh->b_data; in ext4_inline_data_iomap()
1873 brelse(iloc.bh); in ext4_inline_data_iomap()
1896 struct ext4_iloc iloc; in ext4_inline_data_fiemap() local
1911 error = ext4_get_inode_loc(inode, &iloc); in ext4_inline_data_fiemap()
1915 physical = (__u64)iloc.bh->b_blocknr << inode->i_sb->s_blocksize_bits; in ext4_inline_data_fiemap()
1916 physical += (char *)ext4_raw_inode(&iloc) - iloc.bh->b_data; in ext4_inline_data_fiemap()
1919 brelse(iloc.bh); in ext4_inline_data_fiemap()
1959 if ((err = ext4_get_inode_loc(inode, &is.iloc)) != 0) in ext4_inline_data_truncate()
1997 void *p = (void *) ext4_raw_inode(&is.iloc)->i_block; in ext4_inline_data_truncate()
2010 brelse(is.iloc.bh); in ext4_inline_data_truncate()
2030 struct ext4_iloc iloc; in ext4_convert_inline_data() local
2051 iloc.bh = NULL; in ext4_convert_inline_data()
2052 error = ext4_get_inode_loc(inode, &iloc); in ext4_convert_inline_data()
2064 error = ext4_convert_inline_data_nolock(handle, inode, &iloc); in ext4_convert_inline_data()
2068 brelse(iloc.bh); in ext4_convert_inline_data()