Skip to content

ext4: Fix issues in ext4 truncate handling

Jan Kara linux-ext4 stable 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesApplied
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* added Reviewed-by and Tested-by tags
* removed unnecessary ext4_orpan_del() call

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3ext4: Wait for outstanding dio during truncate in nojournal modefs/ext4/inode.c+9 -121 reply
2/3ext4: Do not delete unlinked inode from orphan list on failed truncatefs/ext4/inode.c+1 -11 reply
3/3ext4: Gracefully handle ext4_break_layouts() failure during truncatefs/ext4/inode.c+29 -314 replies

Reviews trailers per patch

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

PatchIra Weiny
1/3R-b
2/3R-b
3/3Reported-and-tested-by R-b

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

Read the v2 thread

Cover letter [PATCH 0/3 v2] ext4: Fix issues in ext4 truncate handling

Hello,

Ira Weiny has reported that ext4_setattr() doesn't handle properly failure of ext4_break_layouts(). When revieweing truncate handling code in ext4_setattr() I've found some more issues. This series fixes them.

Changes since v1:
* added Reviewed-by and Tested-by tags
* removed unnecessary ext4_orpan_del() call

Honza