]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make shrink_delalloc a little friendlier
authorJosef Bacik <josef@redhat.com>
Fri, 21 Jan 2011 21:10:01 +0000 (21:10 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 31 Jan 2011 21:27:28 +0000 (16:27 -0500)
commitcaa8312f7222c3ad492bebe1f393e8ca6df20dfd
treebe7906f6568daecc6196433053ff0ea785b3d175
parentda1d900ae197a8ddc53f403a382b445d04c06333
Btrfs: make shrink_delalloc a little friendlier

Xfstests 224 will just sit there and spin for ever until eventually we give up
flushing delalloc and exit.  On my box this took several hours.  I could not
interrupt this process either, even though we use INTERRUPTIBLE.  So do 2 things

1) Keep us from looping over and over again without reclaiming anything
2) If we get interrupted exit the loop

I tested this and the test now exits in a reasonable amount of time, and can be
interrupted with ctrl+c.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c