Lines Matching refs:inline_size

823 	int ret = 0, inline_size;  in ext4_da_convert_inline_data_to_extent()  local
836 inline_size = ext4_get_inline_size(inode); in ext4_da_convert_inline_data_to_extent()
844 ret = __block_write_begin(page, 0, inline_size, in ext4_da_convert_inline_data_to_extent()
883 int ret, inline_size; in ext4_da_write_inline_data_begin() local
900 inline_size = ext4_get_max_inline_size(inode); in ext4_da_write_inline_data_begin()
903 if (inline_size >= pos + len) { in ext4_da_write_inline_data_begin()
1002 void *inline_start, int inline_size) in ext4_show_inline_dir() argument
1007 void *dlimit = inline_start + inline_size; in ext4_show_inline_dir()
1012 de_len = ext4_rec_len_from_disk(de->rec_len, inline_size); in ext4_show_inline_dir()
1017 inline_start, inline_size, offset)) in ext4_show_inline_dir()
1025 #define ext4_show_inline_dir(dir, bh, inline_start, inline_size) argument
1038 void *inline_start, int inline_size) in ext4_add_dirent_to_inline() argument
1044 inline_size, fname, &de); in ext4_add_dirent_to_inline()
1052 ext4_insert_dentry(inode, de, inline_size, fname); in ext4_add_dirent_to_inline()
1054 ext4_show_inline_dir(dir, iloc->bh, inline_start, inline_size); in ext4_add_dirent_to_inline()
1138 void *buf, int inline_size) in ext4_restore_inline_data() argument
1142 ret = ext4_create_inline_data(handle, inode, inline_size); in ext4_restore_inline_data()
1149 ext4_write_inline_data(inode, iloc, buf, 0, inline_size); in ext4_restore_inline_data()
1157 int inline_size) in ext4_finish_convert_inline_dir() argument
1175 inline_size - EXT4_INLINE_DOTDOT_SIZE); in ext4_finish_convert_inline_dir()
1184 inline_size - EXT4_INLINE_DOTDOT_SIZE + header_size, in ext4_finish_convert_inline_dir()
1208 int inline_size; in ext4_convert_inline_data_nolock() local
1210 inline_size = ext4_get_inline_size(inode); in ext4_convert_inline_data_nolock()
1211 buf = kmalloc(inline_size, GFP_NOFS); in ext4_convert_inline_data_nolock()
1217 error = ext4_read_inline_data(inode, buf, inline_size, iloc); in ext4_convert_inline_data_nolock()
1228 inline_size - EXT4_INLINE_DOTDOT_SIZE); in ext4_convert_inline_data_nolock()
1264 memcpy(data_bh->b_data, buf, inline_size); in ext4_convert_inline_data_nolock()
1270 buf, inline_size); in ext4_convert_inline_data_nolock()
1276 ext4_restore_inline_data(handle, inode, iloc, buf, inline_size); in ext4_convert_inline_data_nolock()
1292 int ret, inline_size, no_expand; in ext4_try_add_inline_entry() local
1306 inline_size = EXT4_MIN_INLINE_DATA_SIZE - EXT4_INLINE_DOTDOT_SIZE; in ext4_try_add_inline_entry()
1309 inline_start, inline_size); in ext4_try_add_inline_entry()
1314 inline_size = EXT4_I(dir)->i_inline_size - in ext4_try_add_inline_entry()
1316 if (!inline_size) { in ext4_try_add_inline_entry()
1322 inline_size = EXT4_I(dir)->i_inline_size - in ext4_try_add_inline_entry()
1326 if (inline_size) { in ext4_try_add_inline_entry()
1331 inline_size); in ext4_try_add_inline_entry()
1367 int ret, inline_size = 0; in htree_inlinedir_to_tree() local
1384 inline_size = ext4_get_inline_size(inode); in htree_inlinedir_to_tree()
1385 dir_buf = kmalloc(inline_size, GFP_NOFS); in htree_inlinedir_to_tree()
1392 ret = ext4_read_inline_data(inode, dir_buf, inline_size, &iloc); in htree_inlinedir_to_tree()
1399 while (pos < inline_size) { in htree_inlinedir_to_tree()
1411 inline_size); in htree_inlinedir_to_tree()
1421 inline_size); in htree_inlinedir_to_tree()
1427 pos += ext4_rec_len_from_disk(de->rec_len, inline_size); in htree_inlinedir_to_tree()
1430 inline_size, pos)) { in htree_inlinedir_to_tree()
1477 int ret, inline_size = 0; in ext4_read_inline_dir() local
1493 inline_size = ext4_get_inline_size(inode); in ext4_read_inline_dir()
1494 dir_buf = kmalloc(inline_size, GFP_NOFS); in ext4_read_inline_dir()
1501 ret = ext4_read_inline_data(inode, dir_buf, inline_size, &iloc); in ext4_read_inline_dir()
1521 extra_size = extra_offset + inline_size; in ext4_read_inline_dir()
1621 int ret, inline_size = EXT4_MIN_INLINE_DATA_SIZE; in ext4_try_create_inline_dir() local
1629 ret = ext4_prepare_inline_data(handle, inode, inline_size); in ext4_try_create_inline_dir()
1642 inline_size - EXT4_INLINE_DOTDOT_SIZE, in ext4_try_create_inline_dir()
1643 inline_size); in ext4_try_create_inline_dir()
1645 inode->i_size = EXT4_I(inode)->i_disksize = inline_size; in ext4_try_create_inline_dir()
1659 int inline_size; in ext4_find_inline_entry() local
1672 inline_size = EXT4_MIN_INLINE_DATA_SIZE - EXT4_INLINE_DOTDOT_SIZE; in ext4_find_inline_entry()
1673 ret = ext4_search_dir(iloc.bh, inline_start, inline_size, in ext4_find_inline_entry()
1684 inline_size = ext4_get_inline_size(dir) - EXT4_MIN_INLINE_DATA_SIZE; in ext4_find_inline_entry()
1686 ret = ext4_search_dir(iloc.bh, inline_start, inline_size, in ext4_find_inline_entry()
1705 int err, inline_size, no_expand; in ext4_delete_inline_entry() local
1723 inline_size = EXT4_MIN_INLINE_DATA_SIZE - in ext4_delete_inline_entry()
1727 inline_size = ext4_get_inline_size(dir) - in ext4_delete_inline_entry()
1737 inline_start, inline_size, 0); in ext4_delete_inline_entry()
1741 ext4_show_inline_dir(dir, iloc.bh, inline_start, inline_size); in ext4_delete_inline_entry()
1760 int *inline_size) in ext4_get_inline_entry() argument
1768 *inline_size = EXT4_MIN_INLINE_DATA_SIZE; in ext4_get_inline_entry()
1772 *inline_size = ext4_get_inline_size(inode) - in ext4_get_inline_entry()
1783 int err, inline_size; in empty_inline_dir() local
1817 &inline_pos, &inline_size); in empty_inline_dir()
1820 inline_size, offset)) { in empty_inline_dir()
1827 inline_size); in empty_inline_dir()
1835 offset += ext4_rec_len_from_disk(de->rec_len, inline_size); in empty_inline_dir()
1931 int inline_size, value_len, needed_blocks, no_expand, err = 0; in ext4_inline_data_truncate() local
1964 inline_size = ext4_get_inline_size(inode); in ext4_inline_data_truncate()
1967 if (i_size < inline_size) { in ext4_inline_data_truncate()
1969 if (inline_size > EXT4_MIN_INLINE_DATA_SIZE) { in ext4_inline_data_truncate()