Lines Matching refs:inline_size
856 int ret = 0, inline_size; in ext4_da_convert_inline_data_to_extent() local
869 inline_size = ext4_get_inline_size(inode); in ext4_da_convert_inline_data_to_extent()
877 ret = __block_write_begin(page, 0, inline_size, in ext4_da_convert_inline_data_to_extent()
993 void *inline_start, int inline_size) in ext4_show_inline_dir() argument
998 void *dlimit = inline_start + inline_size; in ext4_show_inline_dir()
1003 de_len = ext4_rec_len_from_disk(de->rec_len, inline_size); in ext4_show_inline_dir()
1008 inline_start, inline_size, offset)) in ext4_show_inline_dir()
1016 #define ext4_show_inline_dir(dir, bh, inline_start, inline_size) argument
1029 void *inline_start, int inline_size) in ext4_add_dirent_to_inline() argument
1035 inline_size, fname, &de); in ext4_add_dirent_to_inline()
1044 ext4_insert_dentry(dir, inode, de, inline_size, fname); in ext4_add_dirent_to_inline()
1046 ext4_show_inline_dir(dir, iloc->bh, inline_start, inline_size); in ext4_add_dirent_to_inline()
1130 void *buf, int inline_size) in ext4_restore_inline_data() argument
1134 ret = ext4_create_inline_data(handle, inode, inline_size); in ext4_restore_inline_data()
1141 ext4_write_inline_data(inode, iloc, buf, 0, inline_size); in ext4_restore_inline_data()
1149 int inline_size) in ext4_finish_convert_inline_dir() argument
1166 inline_size - EXT4_INLINE_DOTDOT_SIZE); in ext4_finish_convert_inline_dir()
1175 inline_size - EXT4_INLINE_DOTDOT_SIZE + header_size, in ext4_finish_convert_inline_dir()
1197 int inline_size; in ext4_convert_inline_data_nolock() local
1199 inline_size = ext4_get_inline_size(inode); in ext4_convert_inline_data_nolock()
1200 buf = kmalloc(inline_size, GFP_NOFS); in ext4_convert_inline_data_nolock()
1206 error = ext4_read_inline_data(inode, buf, inline_size, iloc); in ext4_convert_inline_data_nolock()
1217 inline_size - EXT4_INLINE_DOTDOT_SIZE); in ext4_convert_inline_data_nolock()
1254 memcpy(data_bh->b_data, buf, inline_size); in ext4_convert_inline_data_nolock()
1260 buf, inline_size); in ext4_convert_inline_data_nolock()
1266 ext4_restore_inline_data(handle, inode, iloc, buf, inline_size); in ext4_convert_inline_data_nolock()
1282 int ret, ret2, inline_size, no_expand; in ext4_try_add_inline_entry() local
1296 inline_size = EXT4_MIN_INLINE_DATA_SIZE - EXT4_INLINE_DOTDOT_SIZE; in ext4_try_add_inline_entry()
1299 inline_start, inline_size); in ext4_try_add_inline_entry()
1304 inline_size = EXT4_I(dir)->i_inline_size - in ext4_try_add_inline_entry()
1306 if (!inline_size) { in ext4_try_add_inline_entry()
1312 inline_size = EXT4_I(dir)->i_inline_size - in ext4_try_add_inline_entry()
1316 if (inline_size) { in ext4_try_add_inline_entry()
1321 inline_size); in ext4_try_add_inline_entry()
1359 int ret, inline_size = 0; in ext4_inlinedir_to_tree() local
1376 inline_size = ext4_get_inline_size(inode); in ext4_inlinedir_to_tree()
1377 dir_buf = kmalloc(inline_size, GFP_NOFS); in ext4_inlinedir_to_tree()
1384 ret = ext4_read_inline_data(inode, dir_buf, inline_size, &iloc); in ext4_inlinedir_to_tree()
1391 while (pos < inline_size) { in ext4_inlinedir_to_tree()
1403 inline_size); in ext4_inlinedir_to_tree()
1413 inline_size); in ext4_inlinedir_to_tree()
1419 pos += ext4_rec_len_from_disk(de->rec_len, inline_size); in ext4_inlinedir_to_tree()
1422 inline_size, pos)) { in ext4_inlinedir_to_tree()
1474 int ret, inline_size = 0; in ext4_read_inline_dir() local
1490 inline_size = ext4_get_inline_size(inode); in ext4_read_inline_dir()
1491 dir_buf = kmalloc(inline_size, GFP_NOFS); in ext4_read_inline_dir()
1498 ret = ext4_read_inline_data(inode, dir_buf, inline_size, &iloc); in ext4_read_inline_dir()
1518 extra_size = extra_offset + inline_size; in ext4_read_inline_dir()
1598 int ret, inline_size; in ext4_read_inline_link() local
1606 inline_size = ext4_get_inline_size(inode); in ext4_read_inline_link()
1607 link = kmalloc(inline_size + 1, GFP_NOFS); in ext4_read_inline_link()
1611 ret = ext4_read_inline_data(inode, link, inline_size, &iloc); in ext4_read_inline_link()
1647 int ret, inline_size = EXT4_MIN_INLINE_DATA_SIZE; in ext4_try_create_inline_dir() local
1655 ret = ext4_prepare_inline_data(handle, inode, inline_size); in ext4_try_create_inline_dir()
1668 inline_size - EXT4_INLINE_DOTDOT_SIZE, in ext4_try_create_inline_dir()
1669 inline_size); in ext4_try_create_inline_dir()
1671 inode->i_size = EXT4_I(inode)->i_disksize = inline_size; in ext4_try_create_inline_dir()
1685 int inline_size; in ext4_find_inline_entry() local
1698 inline_size = EXT4_MIN_INLINE_DATA_SIZE - EXT4_INLINE_DOTDOT_SIZE; in ext4_find_inline_entry()
1699 ret = ext4_search_dir(iloc.bh, inline_start, inline_size, in ext4_find_inline_entry()
1710 inline_size = ext4_get_inline_size(dir) - EXT4_MIN_INLINE_DATA_SIZE; in ext4_find_inline_entry()
1712 ret = ext4_search_dir(iloc.bh, inline_start, inline_size, in ext4_find_inline_entry()
1731 int err, inline_size, no_expand; in ext4_delete_inline_entry() local
1749 inline_size = EXT4_MIN_INLINE_DATA_SIZE - in ext4_delete_inline_entry()
1753 inline_size = ext4_get_inline_size(dir) - in ext4_delete_inline_entry()
1764 inline_start, inline_size, 0); in ext4_delete_inline_entry()
1768 ext4_show_inline_dir(dir, iloc.bh, inline_start, inline_size); in ext4_delete_inline_entry()
1787 int *inline_size) in ext4_get_inline_entry() argument
1795 *inline_size = EXT4_MIN_INLINE_DATA_SIZE; in ext4_get_inline_entry()
1799 *inline_size = ext4_get_inline_size(inode) - in ext4_get_inline_entry()
1810 int err, inline_size; in empty_inline_dir() local
1845 &inline_pos, &inline_size); in empty_inline_dir()
1848 inline_size, offset)) { in empty_inline_dir()
1855 inline_size); in empty_inline_dir()
1861 offset += ext4_rec_len_from_disk(de->rec_len, inline_size); in empty_inline_dir()
1917 int inline_size, value_len, needed_blocks, no_expand, err = 0; in ext4_inline_data_truncate() local
1950 inline_size = ext4_get_inline_size(inode); in ext4_inline_data_truncate()
1953 if (i_size < inline_size) { in ext4_inline_data_truncate()
1972 if (inline_size > EXT4_MIN_INLINE_DATA_SIZE) { in ext4_inline_data_truncate()