projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac08aed
)
Btrfs: drop the delalloc_bytes check in shrink_delalloc
author
Chris Mason
<chris.mason@oracle.com>
Mon, 13 Jun 2011 15:30:47 +0000
(11:30 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Mon, 13 Jun 2011 15:30:47 +0000
(11:30 -0400)
Even when delalloc_bytes is zero, we may need to sleep while waiting
for delalloc space.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index b42efc2ded513ec10c38eb7ebcee9247d2f2c825..1f61bf5b4960404b063ddc4ab0587970687321d0 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-3314,10
+3314,6
@@
static int shrink_delalloc(struct btrfs_trans_handle *trans,
if (reserved == 0)
return 0;
- /* nothing to shrink - nothing to reclaim */
- if (root->fs_info->delalloc_bytes == 0)
- return 0;
-
max_reclaim = min(reserved, to_reclaim);
while (loops < 1024) {