Lines Matching refs:start

166 static int ocfs2_sync_file(struct file *file, loff_t start, loff_t end,
187 err = file_write_and_wait_range(file, start, end);
1434 * start for len bytes. Existing extents are skipped, any extents
1438 u64 start, u64 len)
1442 u64 end = start + len;
1467 * We consider both start and len to be inclusive.
1469 cpos = start >> OCFS2_SB(inode->i_sb)->s_clustersize_bits;
1470 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len);
1523 loff_t start, end;
1526 start = (loff_t)ocfs2_align_bytes_to_clusters(inode->i_sb, byte_start);
1530 if (start < end) {
1531 unmap_mapping_range(mapping, start, end - start, 0);
1532 truncate_inode_pages_range(mapping, start, end - 1);
1539 * start: file offset where zero starts, will be made upper block aligned.
1540 * len: it will be trimmed to the end of current cluster if "start + len"
1544 u64 start, u64 len)
1551 u64 end = ocfs2_align_bytes_to_clusters(sb, start);
1553 if (start + len < end)
1554 end = start + len;
1556 start_block = ocfs2_blocks_for_bytes(sb, start);
1562 cluster = ocfs2_bytes_to_clusters(sb, start);
1576 u64 start, u64 len)
1580 u64 end = start + len;
1587 * The "start" and "end" values are NOT necessarily part of
1595 (unsigned long long)start, (unsigned long long)end);
1602 if ((start & (csize - 1)) == 0 && (end & (csize - 1)) == 0)
1609 * "isize" even "start" > "isize" because it is
1610 * complicated to zeroout just at "start" as "start"
1621 if (start >= isize)
1633 * If start is on a cluster boundary and end is somewhere in another
1634 * cluster, we have not COWed the cluster starting at start, unless
1639 if ((start & (csize - 1)) != 0) {
1645 (start & ~(osb->s_clustersize - 1));
1650 (unsigned long long)start,
1653 ret = ocfs2_zero_range_for_truncate(inode, handle, start,
1661 * This may make start and end equal, but the zeroing
1665 start = end & ~(osb->s_clustersize - 1);
1668 (unsigned long long)start, (unsigned long long)end);
1670 ret = ocfs2_zero_range_for_truncate(inode, handle, start, end);
1809 * partially zero'd later, if hole's start and end offset were
2252 * We start with a read level meta lock and only jump to an ex