Lines Matching refs:write
358 * BTRFS_ILOCK_MMAP - acquire a write lock on the i_mmap_lock
778 * finishes, delaying the write of other range.
810 /* If this is a small write inside eof, kick off a defrag */
825 * work queue to write the uncompressed bytes. This makes sure that both
1388 * allocation. Otherwise ask the caller to write out
1699 * Run the delalloc range from start to end, and write back any dirty pages
1758 * If EXTENT_NORESERVE is set it means that when the buffered write was
1774 * buffered write time, the bytes_may_use counter is incremented);
1959 * If no cow copies or snapshots exist, we write directly to the existing
2815 * the delalloc bit and make it safe to write the page.
3172 * Drop extent maps for the part of the extent we didn't write.
3193 * truncated case if we didn't write out the extent at all.
4663 * btrfs_truncate_block - read, zero a chunk and write a block
6041 * ENOSPC for updating the inode in the case of file write and mmap writes.
7033 * Check if we can do nocow write into the range [@offset, @offset + @len)
7036 * @len: The length to write, will be updated to the nocow writeable
7045 * >0 and update @len if we can do nocow write
7046 * 0 if we can't do nocow write
7182 * invalidate needs to happen so that reads after a write do not
7200 * found is for a buffered write, we can not wait for it
7207 * concurrent write against that previous extent map's
7383 * range and we can't do a NOCOW write, then we have to fail.
7443 const bool write = !!(flags & IOMAP_WRITE);
7460 if (!write && (flags & IOMAP_NOWAIT) && length > PAGE_SIZE)
7467 if (!write)
7514 * NOCOW write.
7516 if (write && !(flags & IOMAP_NOWAIT)) {
7530 * NOWAIT read/write and we need to block.
7604 if (write) {
7652 (test_bit(EXTENT_FLAG_PREALLOC, &em->flags) && !write)) {
7686 const bool write = !!(flags & IOMAP_WRITE);
7689 if (!write && (iomap->type == IOMAP_HOLE)) {
7699 if (write)
7707 if (write) {
7712 if (write)
7763 * Check if we are doing a partial write. If we are, we need to split
8139 * dirty page write out, then the btrfs_writepages() function could
8205 * faulted in, but write(2) could also dirty a page and set delalloc
8433 * So if we truncate and then write and fsync we normally would just
8434 * write the extents that changed, which is a problem if we need to
8435 * first truncate that entire inode. So set this flag so we write out
9930 * write is observed before the load of status in
10277 * The extent must end on a sector boundary. However, we allow a write
10608 btrfs_warn(fs_info, "swapfile must not be copy-on-write");
10635 * completes before the first write into the swap file after it is
10636 * activated, than that write would fallback to COW.
10717 "swapfile must not be copy-on-write");