Skip to content

btrfs: fix mmap writes for NOCOW files/extents

[email protected] linux-btrfs 3 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 5 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: fix -ENOSPC mmap write failure on NOCOW files/extentsfs/btrfs/file.c+51 -80 replies
2/3btrfs: use variable for io_tree when clearing range in btrfs_page_mkwrite()fs/btrfs/file.c+1 -10 replies
3/3btrfs: use btrfs_inode local variable at btrfs_page_mkwrite()fs/btrfs/file.c+30 -340 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchQu Wenruo
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] btrfs: fix mmap writes for NOCOW files/extents

From: Filipe Manana <[email protected]>

A bug fix and a couple cleanups. Details in the individual change logs.

V2: Fix a bug in patch 1/3 where if write_bytes < reserved_space we would
exit without unlocking the cow lock, so set only_release_metadata to true before bailing out in that case.
Added Qu's review tags.

V3: Add missing release of metadata reserved space in case we fall
back to NOCOW mode and we are in a folio that contains i_size somewhere in its middle

Filipe Manana (3):
btrfs: fix -ENOSPC mmap write failure on NOCOW files/extents
btrfs: use variable for io_tree when clearing range in btrfs_page_mkwrite()
btrfs: use btrfs_inode local variable at btrfs_page_mkwrite()

 fs/btrfs/file.c | 93 +++++++++++++++++++++++++++++++++++--------------
 1 file changed, 66 insertions(+), 27 deletions(-)
Signature · 1 line
2.47.2