Skip to contentSkip to conversation

Btrfs updates for 2.6.30-rc

GIT PULL Chris Mason 2 participants 3 messages Apr 27, 2009 – May 9, 2009

lore
Share & tools
lore
#0 lore raw

Hello everyone,

The master branch of:

git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git

Has a few btrfs bug fixes, performance fixes and a few cleanups. The highlights are some code from Josef Bacik to for metadata block group preallocation, which will help cut down on the chances of metadata enospc.

Linus found an acl caching bug that made for many many btree searches for acls on inodes that didn't have acls, and that is fixed up as well.

Chris Mason (7) commits (+144/-237):
Btrfs: look for acls during btrfs_read_locked_inode (+62/-0)
Btrfs: fix deadlocks and stalls on dead root removal (+6/-0)
Btrfs: fix fallocate deadlock on inode extent lock (+29/-17)
Btrfs: remove unused btrfs_bit_radix slab (+0/-8)
Btrfs: ratelimit IO error printks (+31/-17)
Btrfs: remove #if 0 code (+1/-188)
Btrfs: fix acl caching (+15/-7)

Christoph Hellwig (3) commits (+30/-66):

    Btrfs: kill btrfs_cache_create (+28/-43)
    Btrfs: don't export symbols (+0/-6)
    Btrfs: simplify makefile (+2/-17)

Joel Becker (2) commits (+41/-24):
Btrfs: Fix a trivial warning using max() of u64 vs ULL. (+1/-1)
Btrfs: Fix a bunch of printk() warnings. (+40/-23)

Josef Bacik (1) commits (+42/-2):
Btrfs: try to keep a healthy ratio of metadata vs data block groups

Chris Ball (1) commits (+27/-11):
Btrfs: When shrinking, only update disk size on success

Total: (14) commits

 fs/btrfs/Makefile           |   19 -----
 fs/btrfs/acl.c              |   18 +++--
 fs/btrfs/ctree.h            |    6 +
 fs/btrfs/disk-io.c          |   93 ++++++++------------------
 fs/btrfs/extent-tree.c      |   49 +++++++++++---
 fs/btrfs/extent_io.c        |   81 +----------------------
 fs/btrfs/extent_map.c       |   17 ----
 fs/btrfs/file.c             |   89 +------------------------
 fs/btrfs/free-space-cache.c |   15 ++--
 fs/btrfs/inode-map.c        |    2 
 fs/btrfs/inode.c            |  153 ++++++++++++++++++++++++++++++--------------
 fs/btrfs/ioctl.c            |    9 +-
 fs/btrfs/super.c            |   27 +++++--
 fs/btrfs/transaction.c      |    6 +
 fs/btrfs/tree-log.c         |    2 
 fs/btrfs/volumes.c          |   35 ++++++----
 fs/btrfs/volumes.h          |    3 
 17 files changed, 284 insertions(+), 340 deletions(-)
#1 lore raw
Quoted 10 lines · Chris Mason

Hello everyone,

The master branch of:

git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git

Has a few btrfs bug fixes, performance fixes and a few cleanups.  The highlights are some code from Josef Bacik to for metadata block group preallocation, which will help cut down on the chances of metadata enospc.

Chris,

Any chance to create a btrfs partition less than 256MB? I'm looking at using btrfs when it's stable enough for all partitions rather than some btrfs and smaller ones non-btrfs. Currently, reiserfs/reiser4 supports smaller than 100MB which is good for testing.

in btrfs-progs-0.18/mkfs.c ...

                                if (block_count < 256*1024*1024) {
                                        fprintf(stderr, "File system size "
                                                "%llu bytes is too small, "
                                                "256M is required at least\n",
                                                block_count);
                                        exit(1);
                                }

Also, would it be possible when creating a 300MB partition for "df" to display "50MB free" instead of "300MB free"?

Thanks,
Jeff.

#2 lore raw
Quoted 2 lines · Jeff Chua

Also, would it be possible when creating a 300MB partition for "df" to display "50MB free" instead of "300MB free"?

Should display "46MB free" (256MB used by journal?).

Thanks,
Jeff.