Lines Matching refs:pg_end
876 int truncate_hole(struct inode *inode, pgoff_t pg_start, pgoff_t pg_end) in truncate_hole() argument
880 while (pg_start < pg_end) { in truncate_hole()
895 count = min(end_offset - dn.ofs_in_node, pg_end - pg_start); in truncate_hole()
909 pgoff_t pg_start, pg_end; in punch_hole() local
918 pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; in punch_hole()
923 if (pg_start == pg_end) { in punch_hole()
936 ret = fill_zero(inode, pg_end, 0, off_end); in punch_hole()
941 if (pg_start < pg_end) { in punch_hole()
949 blk_end = (loff_t)pg_end << PAGE_SHIFT; in punch_hole()
955 ret = truncate_hole(inode, pg_start, pg_end); in punch_hole()
1181 pgoff_t pg_start, pg_end; in f2fs_collapse_range() local
1197 pg_end = (offset + len) >> PAGE_SHIFT; in f2fs_collapse_range()
1210 ret = f2fs_do_collapse(inode, pg_start, pg_end); in f2fs_collapse_range()
1279 pgoff_t index, pg_start, pg_end; in f2fs_zero_range() local
1300 pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; in f2fs_zero_range()
1305 if (pg_start == pg_end) { in f2fs_zero_range()
1323 for (index = pg_start; index < pg_end;) { in f2fs_zero_range()
1338 end = min(pg_end, end_offset - dn.ofs_in_node + index); in f2fs_zero_range()
1355 ret = fill_zero(inode, pg_end, 0, off_end); in f2fs_zero_range()
1379 pgoff_t nr, pg_start, pg_end, delta, idx; in f2fs_insert_range() local
1417 pg_end = (offset + len) >> PAGE_SHIFT; in f2fs_insert_range()
1418 delta = pg_end - pg_start; in f2fs_insert_range()
1453 pgoff_t pg_end; in expand_inode_data() local
1468 pg_end = ((unsigned long long)offset + len) >> PAGE_SHIFT; in expand_inode_data()
1472 map.m_len = pg_end - map.m_lblk; in expand_inode_data()
1486 new_size = (last_off == pg_end) ? offset + len: in expand_inode_data()
1489 new_size = ((loff_t)pg_end << PAGE_SHIFT) + off_end; in expand_inode_data()
2116 pgoff_t pg_start, pg_end, next_pgofs; in f2fs_defragment_range() local
2128 pg_end = (range->start + range->len) >> PAGE_SHIFT; in f2fs_defragment_range()
2145 if (ei.fofs + ei.len >= pg_end) in f2fs_defragment_range()
2157 while (map.m_lblk < pg_end) { in f2fs_defragment_range()
2158 map.m_len = pg_end - map.m_lblk; in f2fs_defragment_range()
2195 map.m_len = pg_end - pg_start; in f2fs_defragment_range()
2198 while (map.m_lblk < pg_end) { in f2fs_defragment_range()
2203 map.m_len = pg_end - map.m_lblk; in f2fs_defragment_range()
2235 if (idx < pg_end && cnt < blk_per_seg) in f2fs_defragment_range()