Lines Matching defs:offset
28 u64 blkaddr, offset;
78 offset = OFFSET_IN_SEG(sbi, blkaddr);
81 f2fs_set_bit(offset, (char *)se->cur_valid_map);
85 f2fs_set_bit(offset, (char *)se->ckpt_valid_map);
171 u64 count, pgoff_t offset)
200 if (offset > filesize)
202 else if (count + offset > filesize)
203 count = filesize - offset;
210 get_dnode_of_data(sbi, &dn, F2FS_BYTES_TO_BLK(offset),
225 off_in_blk = offset % BLOCK_SZ;
239 offset += len_in_blk;
261 u64 count, pgoff_t offset, enum wr_addr_type addr_type)
287 ASSERT(offset % F2FS_BLKSIZE == 0); /* block boundary only */
306 F2FS_BYTES_TO_BLK(offset), ALLOC_NODE);
340 off_in_blk = offset % BLOCK_SZ;
355 offset += len_in_blk;
365 if (addr_type == WR_NORMAL && offset > le64_to_cpu(inode->i.i_size)) {
366 inode->i.i_size = cpu_to_le64(offset);
381 u64 count, pgoff_t offset)
383 return f2fs_write_ex(sbi, ino, buffer, count, offset, WR_NORMAL);
387 u64 count, pgoff_t offset)
389 return f2fs_write_ex(sbi, ino, buffer, count, offset, WR_COMPRESS_DATA);
392 u64 f2fs_write_addrtag(struct f2fs_sb_info *sbi, nid_t ino, pgoff_t offset,
397 return f2fs_write_ex(sbi, ino, NULL, F2FS_BLKSIZE, offset, addrtag);
448 u64 f2fs_fix_mutable(struct f2fs_sb_info *sbi, nid_t ino, pgoff_t offset,
459 offset + (i << F2FS_BLKSIZE_BITS), NEW_ADDR);