Lines Matching defs:pos
224 void *buffer, loff_t pos, unsigned int len)
235 BUG_ON(pos + len > EXT4_I(inode)->i_inline_size);
238 buffer += pos;
240 if (pos < EXT4_MIN_INLINE_DATA_SIZE) {
241 cp_len = pos + len > EXT4_MIN_INLINE_DATA_SIZE ?
242 EXT4_MIN_INLINE_DATA_SIZE - pos : len;
243 memcpy((void *)raw_inode->i_block + pos, buffer, cp_len);
247 pos += cp_len;
253 pos -= EXT4_MIN_INLINE_DATA_SIZE;
258 memcpy((void *)IFIRST(header) + le16_to_cpu(entry->e_value_offs) + pos,
663 loff_t pos, unsigned len,
671 if (pos + len > ext4_get_max_inline_size(inode))
689 ret = ext4_prepare_inline_data(handle, inode, pos + len);
743 int ext4_write_inline_data_end(struct inode *inode, loff_t pos, unsigned len,
774 ext4_write_inline_data(inode, &iloc, kaddr, pos, copied);
788 ext4_update_inode_size(inode, pos + copied);
806 if (pos + len > inode->i_size && ext4_can_truncate(inode))
812 if (pos + len > inode->i_size) {
894 loff_t pos, unsigned len,
915 ret = ext4_prepare_inline_data(handle, inode, pos + len);
1338 int pos;
1371 pos = 0;
1373 while (pos < inline_size) {
1379 if (pos == 0) {
1388 pos = EXT4_INLINE_DOTDOT_OFFSET;
1389 } else if (pos == EXT4_INLINE_DOTDOT_OFFSET) {
1398 pos = EXT4_INLINE_DOTDOT_SIZE;
1400 de = (struct ext4_dir_entry_2 *)(dir_buf + pos);
1401 pos += ext4_rec_len_from_disk(de->rec_len, inline_size);
1404 inline_size, pos)) {
1488 offset = ctx->pos;
1539 ctx->pos = offset;
1543 while (ctx->pos < extra_size) {
1544 if (ctx->pos == 0) {
1547 ctx->pos = dotdot_offset;
1551 if (ctx->pos == dotdot_offset) {
1554 ctx->pos = dotdot_size;
1559 (dir_buf + ctx->pos - extra_offset);
1561 extra_size, ctx->pos))
1569 ctx->pos += ext4_rec_len_from_disk(de->rec_len, extra_size);