]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: just flush the delalloc inodes in the source tree before snapshot creation
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:24 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:42 +0000 (11:29 -0400)
commit77951dda251e1670ef2cb794ce7373456848cc63
tree90f049cfcebd10dde5b32446a4d5d7c3a243a0b1
parent95d8b58df7ea8f56b0af7707bfcc7ff688dc6816
Btrfs: just flush the delalloc inodes in the source tree before snapshot creation

Before applying this patch, we need flush all the delalloc inodes in
the fs when we want to create a snapshot, it wastes time, and make
the transaction commit be blocked for a long time. It means some other
user operation would also be blocked for a long time.

This patch improves this problem, we just flush the delalloc inodes that
in the source trees before snapshot creation, so the transaction commit
will complete quickly.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ioctl.c
fs/btrfs/transaction.c