summaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2011-05-01 18:11:18 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-05-01 18:11:18 -0400
commitdc2070a241cf3f86395afe7b969020d99aad8f00 (patch)
treed48537695bda850b38037c85851de551ce4e1b5c /fs/ext4/balloc.c
parentd9f34504e6952e909a6932c5b2d1857716606380 (diff)
downloadop-kernel-dev-dc2070a241cf3f86395afe7b969020d99aad8f00.zip
op-kernel-dev-dc2070a241cf3f86395afe7b969020d99aad8f00.tar.gz
ext4: remove dead code in ext4_has_free_blocks()
percpu_counter_sum_positive() never returns a negative value. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r--fs/ext4/balloc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index 1c67139..9c6cd51 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -507,11 +507,6 @@ static int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks)
EXT4_FREEBLOCKS_WATERMARK) {
free_blocks = percpu_counter_sum_positive(fbc);
dirty_blocks = percpu_counter_sum_positive(dbc);
- if (dirty_blocks < 0) {
- printk(KERN_CRIT "Dirty block accounting "
- "went wrong %lld\n",
- (long long)dirty_blocks);
- }
}
/* Check whether we have space after
* accounting for current dirty blocks & root reserved blocks.
OpenPOWER on IntegriCloud