Skip to content

Btrfs: Some bug fixes

Li Zefan linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12btrfs: Fix threshold calculation for block groups smaller than 1GBfs/btrfs/free-space-cache.c+6 -20 replies
2/12btrfs: Add helper function free_bitmap()fs/btrfs/free-space-cache.c+16 -210 replies
3/12btrfs: Free fully occupied bitmap in clusterfs/btrfs/free-space-cache.c+2 -00 replies
4/12btrfs: Update stats when allocating from a clusterfs/btrfs/free-space-cache.c+14 -30 replies
5/12btrfs: Add a helper try_merge_free_space()fs/btrfs/free-space-cache.c+43 -320 replies
6/12btrfs: Check mergeable free space when removing a clusterfs/btrfs/free-space-cache.c+20 -60 replies
7/12Btrfs: Fix memory leak at umountfs/btrfs/disk-io.c+2 -00 replies
8/12Btrfs: Fix memory leak on finding existing superfs/btrfs/super.c+2 -00 replies
9/12Btrfs: Free correct pointer after using strsepfs/btrfs/super.c+3 -20 replies
10/12Btrfs: Don't return acl info when mounting with noacl optionfs/btrfs/acl.c+6 -00 replies
11/12Btrfs: Fix memory leak in writepage fixup workfs/btrfs/inode.c+1 -00 replies
12/12Btrfs: Fix file clone when source offset is not 0fs/btrfs/ioctl.c+4 -110 replies

Reviews trailers per patch

6 of 12 patches have a Reviewed-by or Acked-by.

PatchJosef Bacik
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12
8/12
9/12
10/12
11/12
12/12

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

Read the v1 thread

Cover letter [PATCH 00/12] Btrfs: Some bug fixes

Hi Chris,

Those patches (except the last two) have been sent to the mailing list before, and they fix real bugs (but not critical bugs). Please consider queue them for 2.6.38.

The free-space cache fixes were reviewed by Josef. Other patches fix some memory leaks, fix an acl bug, and fix the file clone ioctl.

Note: not all the patches are from Fujitsu.

Those patches can be pulled from:

git://repo.or.cz/linux-btrfs-devel.git bug-fixes

Ian Kent (1):
Btrfs: Fix memory leak on finding existing super

Li Zefan (8):
btrfs: Fix threshold calculation for block groups smaller than 1GB
btrfs: Add helper function free_bitmap()
btrfs: Free fully occupied bitmap in cluster
btrfs: Update stats when allocating from a cluster
btrfs: Add a helper try_merge_free_space()
btrfs: Check mergeable free space when removing a cluster
Btrfs: Fix memory leak at umount
Btrfs: Fix file clone when source offset is not 0

Miao Xie (2):
Btrfs: Don't return acl info when mounting with noacl option
Btrfs: Fix memory leak in writepage fixup work

Tero Roponen (1):
Btrfs: Free correct pointer after using strsep

 fs/btrfs/acl.c              |    6 ++
 fs/btrfs/disk-io.c          |    2 +
 fs/btrfs/free-space-cache.c |  161 ++++++++++++++++++++++++++-----------------
 fs/btrfs/inode.c            |    1 +
 fs/btrfs/ioctl.c            |    5 +-
 fs/btrfs/super.c            |    7 ++-
 6 files changed, 117 insertions(+), 65 deletions(-)