Re: Kernel error during btrfs balance

2011-01-18 Thread Yan, Zheng
On Tue, Jan 18, 2011 at 9:22 PM, Erik Logtenberg e...@logtenberg.eu wrote: On 01/18/2011 01:54 AM, Yan, Zheng wrote: On Mon, Jan 17, 2011 at 10:14 PM, Erik Logtenberg e...@logtenberg.eu wrote: Hi, btrfs balance results in: http://pastebin.com/v5j0809M My system: fully up-to-date Fedora 14

[PATCH RFC] Add ioctl for balancing a subset of the full filesystem.

2011-01-18 Thread Hugo Mills
This is a patch purely for comment. There's several things wrong with it that I need to fix (at minimum, it has too much debugging output, the __balance_chunk_filters function takes the wrong set of parameters to make it properly extensible, and the progress counter is broken). I'm planning

[PATCH RFC] Initial implementation of userspace interface for filtered balancing.

2011-01-18 Thread Hugo Mills
This is the userspace side of the filtered balance patch, again purely for comment at this stage. The command-line invocation will look something like this: $ sudo btrfs fi bal --filter type=meta,~raid1 /mnt This will balance all metadata block groups that are not replicated with RAID1.

List of compressed files

2011-01-18 Thread Rodney Beede
I looked through the man page and wiki but didn't see a command to list all files on a mount point that are compressed. A command that could do the following would be nice: Full Pathame Compressed Size Bytes Uncompressed Size Bytes Compression Ratio /some/file 1500

[PATCH v3 0/5]add new ioctls to do metadata readahead in btrfs

2011-01-18 Thread Shaohua Li
Hi, We have file readahead to do asyn file read, but has no metadata readahead. For a list of files, their metadata is stored in fragmented disk space and metadata read is a sync operation, which impacts the efficiency of readahead much. The patches try to add meatadata readahead for btrfs. It

[PATCH v3 2/5] implement metadata_incore in btrfs

2011-01-18 Thread Shaohua Li
Implement btrfs specific .metadata_incore. In btrfs, all metadata pages are in a special btree_inode, we take pages from it. we only account referenced pages here. Say we collect metadata info in one boot, do metadata readahead in next boot and we might collect metadata again. The readahead could

[PATCH v3 3/5]add metadata_readahead ioctl in vfs

2011-01-18 Thread Shaohua Li
Subject: add metadata_readahead ioctl in vfs Add metadata readahead ioctl in vfs. Filesystem can hook to super_operations.metadata_readahead to handle filesystem specific task. Next patch will give an example how btrfs implements it. Signed-off-by: Shaohua Li shaohua...@intel.com Reviewed-by:

[PATCH v3 5/5] validate extent_buffer if it's readahead in btrfs

2011-01-18 Thread Shaohua Li
do validation for extent_buffer if it's skipped before With metadata readahead, we slightly change the behavior. Before it, we allocate an extent_buffer (so set page-private), do metadata read and btree_readpage_end_io_hook() will do validation. After it, we directly do metadata readahead, and

Re: [PATCH] Btrfs: Fix page count calculation

2011-01-18 Thread Chris Mason
Excerpts from Yan, Zheng's message of 2011-01-18 00:34:40 -0500: take offset of start position into account when calculating page count. Thanks Yan, do you have a test case that exposes this? I'd like to add it to xfsqa if it makes sense. -chris -- To unsubscribe from this list: send the line

[BUG] 2.6.35 btrfs oops at extent_range_uptodate

2011-01-18 Thread Yang Ruirui
Boot with meego kernel 2.6.35.9-6.5-adaptation-n900 on n900, an oops happend, I see similar reporting in lkml: https://lkml.org/lkml/2010/8/26/103 I just happened once, so I don't know hot to reproduce it. `addr2line -e vmlinux 0xc0197888` show fs/btrfs/extent_io.c:3358 ret =