diff options
author | Shaohua Li | 2011-05-01 18:11:18 -0400 |
---|---|---|
committer | Theodore Ts'o | 2011-05-01 18:11:18 -0400 |
commit | dc2070a241cf3f86395afe7b969020d99aad8f00 (patch) | |
tree | d48537695bda850b38037c85851de551ce4e1b5c /fs | |
parent | d9f34504e6952e909a6932c5b2d1857716606380 (diff) |
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')
-rw-r--r-- | fs/ext4/balloc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 1c67139ad4b4..9c6cd51c09e3 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. |