Lines Matching refs:pos
42 loff_t pos) in pagecache_read() argument
46 PAGE_SIZE - offset_in_page(pos)); in pagecache_read()
50 page = read_mapping_page(inode->i_mapping, pos >> PAGE_SHIFT, in pagecache_read()
56 memcpy(buf, addr + offset_in_page(pos), n); in pagecache_read()
62 pos += n; in pagecache_read()
73 loff_t pos) in pagecache_write() argument
75 if (pos + count > inode->i_sb->s_maxbytes) in pagecache_write()
80 PAGE_SIZE - offset_in_page(pos)); in pagecache_write()
86 res = pagecache_write_begin(NULL, inode->i_mapping, pos, n, 0, in pagecache_write()
92 memcpy(addr + offset_in_page(pos), buf, n); in pagecache_write()
95 res = pagecache_write_end(NULL, inode->i_mapping, pos, n, n, in pagecache_write()
103 pos += n; in pagecache_write()
356 loff_t pos = ext4_verity_metadata_pos(inode) + (index << log_blocksize); in ext4_write_merkle_tree_block() local
358 return pagecache_write(inode, buf, 1 << log_blocksize, pos); in ext4_write_merkle_tree_block()