Re: [PATCH] implement memory reclaim for leaf reference cache

2008-07-30 Thread Chris Mason
On Wed, 2008-07-30 at 23:52 +0800, Yan Zheng wrote: Hello, The memory reclaiming issue happens when snapshot exists. In that case, some cache entries may not be used during old snapshot dropping, so they will remain in the cache until umount. The patch adds a field to struct btrfs_leaf_ref

[PATCH] Add compability for kernels =2.6.27-rc1

2008-07-30 Thread Sven Wegener
Add a couple of #if's to follow API changes. Signed-off-by: Sven Wegener [EMAIL PROTECTED] --- extent_io.c | 16 file.c |4 inode.c | 12 ++-- 3 files changed, 30 insertions(+), 2 deletions(-) Having passed the rc1 mark the API changes should be

Re: [PATCH] Add compability for kernels =2.6.27-rc1

2008-07-30 Thread Chris Mason
On Wed, 2008-07-30 at 21:56 +0200, Jens Axboe wrote: On Wed, Jul 30 2008, Sven Wegener wrote: Add a couple of #if's to follow API changes. Signed-off-by: Sven Wegener [EMAIL PROTECTED] --- extent_io.c | 16 file.c |4 inode.c | 12

Re: [PATCH] Add compability for kernels =2.6.27-rc1

2008-07-30 Thread Jens Axboe
On Wed, Jul 30 2008, Chris Mason wrote: On Wed, 2008-07-30 at 21:56 +0200, Jens Axboe wrote: On Wed, Jul 30 2008, Sven Wegener wrote: Add a couple of #if's to follow API changes. Signed-off-by: Sven Wegener [EMAIL PROTECTED] --- extent_io.c | 16 file.c

Re: [PATCH] Add compability for kernels =2.6.27-rc1

2008-07-30 Thread Chris Mason
On Wed, 2008-07-30 at 22:13 +0200, Jens Axboe wrote: [ rcu page cache ] For btrfs's usage, it should be safe with a simple rcu_read_lock(), if the return is referenced safely. This btrfs code is basically a find_get_page without the get. It should only be called when I know I

Re: [PATCH] implement memory reclaim for leaf reference cache

2008-07-30 Thread Chris Mason
On Wed, 2008-07-30 at 14:14 -0400, Chris Mason wrote: On Wed, 2008-07-30 at 23:52 +0800, Yan Zheng wrote: Hello, The memory reclaiming issue happens when snapshot exists. In that case, some cache entries may not be used during old snapshot dropping, so they will remain in the cache

Re: [PATCH] btrfs-convert new dir index support

2008-07-30 Thread Chris Mason
On Wed, 2008-07-30 at 02:22 +0800, Yan Zheng wrote: Hello, This patch updates btrfs-convert for the new dir index stuff. Please apply Radoslaw Szkodzinski's btrfs-convert patch first, this one depends on it. I failed to properly follow these instructions ;) But did merge both patches.

Kernel oops after compile error

2008-07-30 Thread Marcel Runte
Hello, I fiddled around with btrfs this evening and need some further insight into this error. During compilation this error occurs: /home/runtema/btrfs_build/kernel-9da425337329/file.c: In Funktion »btrfs_file_write«: /home/runtema/btrfs_build/kernel-9da425337329/file.c:851: Warnung: