Skip to content

random bug fixes

Miao Xie linux-btrfs 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest12 patches 4 repliesIn review
  2. v3 posting 2/22 of 7 patches 0 repliesSuperseded
  3. v3 posting 1/22 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches0 repliesSuperseded
v12 patches4 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Btrfs: fix error path in create_pending_snapshot()fs/btrfs/transaction.c+17 -232 replies
2/12Btrfs: fix full backref problem when inserting shared block referencefs/btrfs/transaction.c+4 -00 replies
3/12Btrfs: fix file extent discount problem in the, snapshotfs/btrfs/ordered-data.c fs/btrfs/ordered-data.h+25 -440 replies
4/12Btrfs: use a slab for ordered extents allocationfs/btrfs/ordered-data.c fs/btrfs/ordered-data.h fs/btrfs/super.c+31 -30 replies
5/12Btrfs: fix wrong orphan count of the fs/file treefs/btrfs/inode.c+1 -10 replies
6/12Btrfs: add a new "type" field into the block reservation structurefs/btrfs/ctree.h fs/btrfs/delayed-inode.c fs/btrfs/disk-io.c +4 more+37 -200 replies
7/12Btrfs: fix corrupted metadata in the snapshotfs/btrfs/delayed-inode.c fs/btrfs/inode.c+16 -103 replies
8/12Btrfs: fix the snapshot that should not existfs/btrfs/transaction.c+53 -150 replies
9/12Btrfs: fix wrong size for the reservation of the, snapshot creationfs/btrfs/extent-tree.c fs/btrfs/ioctl.c+4 -40 replies
10/12Btrfs: fix unprotected ->log_batchfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/file.c +1 more+9 -110 replies
11/12Btrfs: output more information when aborting a unused transaction handlefs/btrfs/super.c+7 -10 replies
12/12Btrfs: fix wrong size for the reservation when doing, file pre-allocation.fs/btrfs/file.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH V4 0/12] random bug fixes

This patchset contains 12 bug-fix patches.
- 01-03, 05-09 fix some bugs of the snapshot creation.
- 04 just improves the memory allocation of the ordered data extent object.
- 10 fixes a bug of the tree log that we forgot to protect ->log_batch.
- 11 improve error path handle, makes it show more information to the users
- 12 fixes the problem that fallocate() reserved less space than it need.

And in this patchset, 06, 09-12 are new patches. The others are old ones, but I updated them according to the comment of David. Thanks, David.

In order to avoid the confusion of the version number, I marked all the patches as V4 (The version number of the old version is confused, the version number of two patches is v3, the others is v1).

Beside that, we can pull this patchset from the URL

git://github.com/miaoxie/linux-btrfs.git for-merge

Thanks
Miao
---
Miao Xie (12):
Btrfs: fix error path in create_pending_snapshot()
Btrfs: fix full backref problem when inserting shared block reference
Btrfs: fix file extent discount problem in the snapshot
Btrfs: use a slab for ordered extents allocation
Btrfs: fix wrong orphan count of the fs/file tree
Btrfs: add a new "type" field into the block reservation structure
Btrfs: fix corrupted metadata in the snapshot
Btrfs: fix the snapshot that should not exist
Btrfs: fix wrong size for the reservation of the snapshot creation
Btrfs: fix unprotected ->log_batch
Btrfs: output more information when aborting a unused transaction handle
Btrfs: fix wrong size for the reservation when doing file pre-allocation.

 fs/btrfs/ctree.h         |   18 ++++++--
 fs/btrfs/delayed-inode.c |    5 +-
 fs/btrfs/disk-io.c       |   17 ++++---
 fs/btrfs/extent-tree.c   |   14 +++---
 fs/btrfs/file.c          |    8 ++--
 fs/btrfs/inode.c         |   33 ++++++++------
 fs/btrfs/ioctl.c         |    5 +-
 fs/btrfs/ordered-data.c  |   85 ++++++++++++++++-------------------
 fs/btrfs/ordered-data.h  |    9 ++++
 fs/btrfs/relocation.c    |    3 +-
 fs/btrfs/super.c         |   17 ++++++-
 fs/btrfs/transaction.c   |  108 ++++++++++++++++++++++++++++++---------------
 fs/btrfs/tree-log.c      |   12 ++---
 13 files changed, 203 insertions(+), 131 deletions(-)