Lines Matching refs:from
304 * Both of fdatasync() and fsync() are able to be recovered from
625 static int truncate_partial_data_page(struct inode *inode, u64 from,
628 loff_t offset = from & (PAGE_SIZE - 1);
629 pgoff_t index = from >> PAGE_SHIFT;
659 int f2fs_do_truncate_blocks(struct inode *inode, u64 from, bool lock)
668 trace_f2fs_truncate_blocks_enter(inode, from);
670 free_from = (pgoff_t)F2FS_BLK_ALIGN(from);
685 f2fs_truncate_inline_inode(inode, ipage, from);
718 err = truncate_partial_data_page(inode, from, truncate_page);
724 int f2fs_truncate_blocks(struct inode *inode, u64 from, bool lock)
726 u64 free_from = from;
735 free_from = round_up(from,
744 if (from != free_from) {
745 err = f2fs_truncate_partial_cluster(inode, from, lock);
1364 /* write out all dirty pages from offset */
1575 /* write out all dirty pages from offset */
2854 /* write out all dirty pages from offset */
4124 static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
4154 ret = generic_write_checks(iocb, from);
4160 if (iov_iter_fault_in_readable(from, iov_iter_count(from)))
4165 iov_iter_count(from)) ||
4167 f2fs_force_buffered_io(inode, iocb, from)) {
4192 if (!f2fs_force_buffered_io(inode, iocb, from) &&
4193 allow_outplace_dio(inode, iocb, from))
4197 target_size = iocb->ki_pos + iov_iter_count(from);
4199 err = f2fs_preallocate_blocks(iocb, from);
4208 ret = __generic_file_write_iter(iocb, from);
4222 iov_iter_count(from), ret);