[PATCH] remove some unused lines in submit_one_bio()

2009-01-12 Thread yanhai zhu
Hello, remove some unused lines. -- Regards, Zhu Yanhai -- diff --git a/extent_io.c b/extent_io.c index e086d40..5716e1e 100644 --- a/extent_io.c +++ b/extent_io.c @@ -1841,11 +1841,6 @@ static int submit_one_bio(int rw, struct bio *bio, int mirror_num, struct bio_vec *bvec = bio->bi_io_v

Re: [PATCH] Add Documentation/filesystem/btrfs.txt, remove old COPYING and INSTALL

2009-01-12 Thread yanhai zhu
Hi, Remember to update 00-INDEX in the filesystems directory also :) -- diff --git a/Documentation/filesystems/00-INDEX b/Documentation/filesystems/00-INDEX index 52cd611..1475cb5 100644 --- a/Documentation/filesystems/00-INDEX +++ b/Documentation/filesystems/00-INDEX @@ -18,6 +18,8 @@ befs.txt

[PATCH] The length of memset in btrfs_file_write is wrong

2009-01-04 Thread yanhai zhu
Hello, The length of memset in btrfs_file_write is wrong. -- diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 5070810..e67f8d4 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1094,7 +1094,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,

Re: multiple device usage

2008-12-28 Thread yanhai zhu
> so i can do btrfs-vol -r /dev/sdb while it`s being mounted, pull the disk , > replace it with a bigger one, rescan-scsi-bus, mkfs.btrfs the new disk and ~~~ This step will fail, yo

Re: [PATCH] Btrfs image tool

2008-11-22 Thread yanhai zhu
diff --git a/btrfs-image.c b/btrfs-image.c index 7499a5e..9925bdb 100644 --- a/btrfs-image.c +++ b/btrfs-image.c @@ -216,8 +216,9 @@ static void *dump_worker(void *data) async->bufsize = compressBound(async->size); async->buffer = malloc(async->bufsiz

Re: [PATH]Some fix for batching extent insert.

2008-11-18 Thread yanhai zhu
hello, In fact, Before Liu's change, this function maybe don't wait and insert ALL extents when all=1 in some cases, please think about the following conditions: when run to Line 2146 (1) all is set to 1 (2) we have skipped some extents in previous loops (skipped = 1) (3) we have found nothing

[PATCH] Check kthread_should_stop() before schedule() in worker_loop

2008-11-06 Thread yanhai zhu
Hello, In worker_loop(), the func should check whether it has been requested to stop before it decides to schedule out. Otherwise if the stop request(also the last wake_up()) sent by btrfs_stop_workers() happens when worker_loop() running after the "while" judgement and before schedule(), woker_l

[PATCH] Add a missing return pointer check

2008-11-04 Thread yanhai zhu
Hello, This patch adds a missing kzalloc()'s return pointer check in add_missing_dev(). Thanks, Zhu Yanhai --- fs/btrfs/volumes.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index cbb9bb3..1b7ee1f 100644 --- a/fs/btrfs/volume

Re: Compile error of latest hotfix release of btrfs

2008-11-03 Thread yanhai zhu
57364/extent_io.o] Error 1 > make[1]: *** [_module_/home/tarkane/btrfs/kernel-417d87e57364] Error 2 > make[1]: Leaving directory `/usr/src/linux-2.6.28-rc3' > make: *** [all] Error 2 > [EMAIL PROTECTED]:~/btrfs/kernel-417d87e57364$ > > > > yanhai zhu wrote:

Re: [PATCH]several insignificant cleanups

2008-11-03 Thread yanhai zhu
trivial, sorry, i always forget these english words. 2008/11/3 yanhai zhu <[EMAIL PROTECTED]>: > Hello, > below is some nontrivial cleanups. > > Thanks, > Zhu Yanhai > -- > diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c > index cbb9bb3..0974637 100

[PATCH]several insignificant cleanups

2008-11-03 Thread yanhai zhu
Hello, below is some nontrivial cleanups. Thanks, Zhu Yanhai -- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index cbb9bb3..0974637 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -834,7 +834,7 @@ static int btrfs_rm_dev_item(struct btrfs_root *root, struct block_dev

Re: Compile error of latest hotfix release of btrfs

2008-11-03 Thread yanhai zhu
hello, try this. diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 9b37ce6..eb01341 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2539,7 +2539,11 @@ int extent_readpages(struct extent_io_tree *tree, /* open coding of lru_cache_add, also no