Lines Matching refs:lend
309 * @lend: offset to which to truncate (inclusive)
313 * if lstart or lend + 1 is not page aligned).
326 * truncate_inode_pages_range is able to handle cases where lend + 1 is not
330 loff_t lstart, loff_t lend)
348 * Note that 'end' is exclusive while 'lend' is inclusive.
351 if (lend == -1)
353 * lend == -1 indicates end-of-file so we have to set 'end'
359 end = (lend + 1) >> PAGE_SHIFT;
375 same_folio = (lstart >> PAGE_SHIFT) == (lend >> PAGE_SHIFT);
378 same_folio = lend < folio_pos(folio) + folio_size(folio);
379 if (!truncate_inode_partial_folio(folio, lstart, lend)) {
390 folio = __filemap_get_folio(mapping, lend >> PAGE_SHIFT,
393 if (!truncate_inode_partial_folio(folio, lstart, lend))
825 * @lend: offset of last byte of hole
834 void truncate_pagecache_range(struct inode *inode, loff_t lstart, loff_t lend)
838 loff_t unmap_end = round_down(1 + lend, PAGE_SIZE) - 1;
844 * allows holelen 0 for all, and we allow lend -1 for end of file.
855 truncate_inode_pages_range(mapping, lstart, lend);