Lines Matching refs:start

164 static int ocfs2_sync_file(struct file *file, loff_t start, loff_t end,
185 err = file_write_and_wait_range(file, start, end);
1428 * start for len bytes. Existing extents are skipped, any extents
1432 u64 start, u64 len)
1436 u64 end = start + len;
1461 * We consider both start and len to be inclusive.
1463 cpos = start >> OCFS2_SB(inode->i_sb)->s_clustersize_bits;
1464 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len);
1517 loff_t start, end;
1520 start = (loff_t)ocfs2_align_bytes_to_clusters(inode->i_sb, byte_start);
1524 if (start < end) {
1525 unmap_mapping_range(mapping, start, end - start, 0);
1526 truncate_inode_pages_range(mapping, start, end - 1);
1533 * start: file offset where zero starts, will be made upper block aligned.
1534 * len: it will be trimmed to the end of current cluster if "start + len"
1538 u64 start, u64 len)
1545 u64 end = ocfs2_align_bytes_to_clusters(sb, start);
1547 if (start + len < end)
1548 end = start + len;
1550 start_block = ocfs2_blocks_for_bytes(sb, start);
1556 cluster = ocfs2_bytes_to_clusters(sb, start);
1570 u64 start, u64 len)
1574 u64 end = start + len;
1581 * The "start" and "end" values are NOT necessarily part of
1589 (unsigned long long)start, (unsigned long long)end);
1596 if ((start & (csize - 1)) == 0 && (end & (csize - 1)) == 0)
1603 * "isize" even "start" > "isize" because it is
1604 * complicated to zeroout just at "start" as "start"
1615 if (start >= isize)
1627 * If start is on a cluster boundary and end is somewhere in another
1628 * cluster, we have not COWed the cluster starting at start, unless
1633 if ((start & (csize - 1)) != 0) {
1639 (start & ~(osb->s_clustersize - 1));
1644 (unsigned long long)start,
1647 ret = ocfs2_zero_range_for_truncate(inode, handle, start,
1655 * This may make start and end equal, but the zeroing
1659 start = end & ~(osb->s_clustersize - 1);
1662 (unsigned long long)start, (unsigned long long)end);
1664 ret = ocfs2_zero_range_for_truncate(inode, handle, start, end);
1803 * partially zero'd later, if hole's start and end offset were
2246 * We start with a read level meta lock and only jump to an ex