[PATCH 2/2 RESEND] Btrfs: flush all the dirty pages if try_to_writeback_inodes_sb_nr() fails

2012-08-29 Thread Miao Xie
We may try to flush some dirty pages when there is no enough space to reserve. But it is possible that this operation fails, in order to get enough space to reserve successfully, we will sync all the delalloc file. This operation is safe, we needn't worry about the case that the filesystem goes

[PATCH 1/2 RESEND] vfs: re-implement writeback_inodes_sb(_nr)_if_idle() and rename them

2012-08-29 Thread Miao Xie
writeback_inodes_sb(_nr)_if_idle() is re-implemented by replacing down_read() with down_read_trylock() because - If -s_umount is write locked, then the sb is not idle. That is writeback_inodes_sb(_nr)_if_idle() needn't wait for the lock. - writeback_inodes_sb(_nr)_if_idle() grabs s_umount lock

[PATCH 1/2] Btrfs: fix a bug in checking whether a inode is already in log

2012-08-29 Thread Liu Bo
This is based on Josef's Btrfs: turbo charge fsync. The current btrfs checks if an inode is in log by comparing root's last_log_commit to inode's last_sub_trans[2]. But the problem is that this root-last_log_commit is shared among inodes. Say we have N inodes to be logged, after the first

[PATCH 2/2] Btrfs: check if an inode has no checksum when logging it

2012-08-29 Thread Liu Bo
This is based on Josef's Btrfs: turbo charge fsync. If an inode is a BTRFS_INODE_NODATASUM one, we don't need to look for csum items any more. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/tree-log.c | 23 --- 1 files changed, 12 insertions(+), 11 deletions(-)

[PATCH] Btrfs-progs: Add get/set label ioctl

2012-08-29 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- btrfslabel.c | 90 ++ ioctl.h |2 + utils.h |1 + 3 files changed, 62 insertions(+), 31 deletions(-) diff --git a/btrfslabel.c

[PATCH] Btrfs: Add get/set label ioctl

2012-08-29 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/ctree.h | 10 ++ fs/btrfs/ioctl.c | 30 ++ fs/btrfs/ioctl.h |2 ++ 3 files changed, 42 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/ctree.h

Re: [PATCH] Btrfs: Add get/set label ioctl

2012-08-29 Thread Jie Liu
Hi Anand, I have posted a patch for set label back to last year, which can be found at: https://patchwork.kernel.org/patch/1124642/ Besides that, we have discussed to use 50 as the ioctl(2) number at that time. task assignment in our wiki page:

Debian 7 (wheezy) support for btrfs RAID

2012-08-29 Thread Daniel Pocock
I've been able to run the Debian 7 installer (beta1) and get a working Debian system on btrfs RAID1 root FS. A few manual steps and patches required - it would be useful to get feedback about this process. I might have a go at patching partman to fully support this through the installer menu.

Re: BUG: unable to handle kernel NULL pointer rcu_string_strdup.constprop.63+0x14/0x48

2012-08-29 Thread Marc MERLIN
On Fri, Aug 24, 2012 at 10:42:33AM -0700, Marc MERLIN wrote: With 3.5.2, I created 5 dm-crypted devices from 5 drives. I created a raid0 btrfs filesystem and wrote stuff to it. One drive died. Is degraded mode supposed to crash for now, or is this something I can provide more info on to help

Re: BUG: unable to handle kernel NULL pointer rcu_string_strdup.constprop.63+0x14/0x48

2012-08-29 Thread Josef Bacik
On Fri, Aug 24, 2012 at 11:42:33AM -0600, Marc MERLIN wrote: With 3.5.2, I created 5 dm-crypted devices from 5 drives. I created a raid0 btrfs filesystem and wrote stuff to it. One drive died. I fixed this in btrfs-next, please build that and verify it fixes your problem. Thanks, Josef --

[no subject]

2012-08-29 Thread Chris Mason
Hi Linus, I've split out the big send/receive update from my last pull request and now have just the fixes in my for-linus branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus For anyone who wants send/receive updates, they are maintained as well. But it is has

[GIT PULL] Btrfs updates

2012-08-29 Thread Chris Mason
Hi Linus, I've split out the big send/receive update from my last pull request and now have just the fixes in my for-linus branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus For anyone who wants send/receive updates, they are maintained as well. But it is has

Re: [PATCH] Btrfs: Add get/set label ioctl

2012-08-29 Thread Anand Jain
Ah. I missed that. Thanks. So should use your original patch. -Anand On 29/08/12 17:00, Jie Liu wrote: Hi Anand, I have posted a patch for set label back to last year, which can be found at: https://patchwork.kernel.org/patch/1124642/ Besides that, we have discussed to use 50 as the

Re: [PATCH] Btrfs: Add get/set label ioctl

2012-08-29 Thread Anand Jain
Jeff, I don't find the get label ioctl part unless I am missing something. Any idea? Thxs, -Anand On 30/08/12 09:54, Anand Jain wrote: Ah. I missed that. Thanks. So should use your original patch. -Anand On 29/08/12 17:00, Jie Liu wrote: Hi Anand, I have posted a patch for set label

[PATCH] xfstests: add btrfs device add-del test

2012-08-29 Thread Miao Xie
This patch adds btrfs device add/delete test to xfstests. Though case 265 also does device add/delete test, it is too simple. Compare with case 265, this case is more complex. First, this case test the basic function on different storage profiles, on different number of the devices. Second,

Re: [PATCH] Btrfs: Add get/set label ioctl

2012-08-29 Thread Jie Liu
On 08/30/12 13:44, Anand Jain wrote: Jeff, I don't find the get label ioctl part unless I am missing something. Any idea? Yes, you're right, I have not post the get label at that time. The original patch could be revised with this support easily. How about using one structure and one ioctl