summaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-09-10 01:16:51 +0200
committerTheodore Ts'o <tytso@mit.edu>2011-09-10 01:16:51 +0200
commitdf55c99dc8ee4c3c886a5edc8a4aa6b131c95afc (patch)
tree6e5ea5a435659fa2dee7410f0b0196bdaf3a2054 /fs/ext4/inode.c
parentext4: rename ext4_claim_free_blocks() to ext4_claim_free_clusters() (diff)
downloadlinux-df55c99dc8ee4c3c886a5edc8a4aa6b131c95afc.tar.xz
linux-df55c99dc8ee4c3c886a5edc8a4aa6b131c95afc.zip
ext4: rename ext4_has_free_blocks() to ext4_has_free_clusters()
Rename the function so it is more clear what is going on. Also rename the various variables so it's clearer what's happening. Also fix a missing blocks to cluster conversion when reading the number of reserved blocks for root. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to '')
-rw-r--r--fs/ext4/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 557c34ffa05b..88dc63a01756 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2255,7 +2255,7 @@ static int ext4_nonda_switch(struct super_block *sb)
percpu_counter_read_positive(&sbi->s_freeclusters_counter));
dirty_blocks = percpu_counter_read_positive(&sbi->s_dirtyclusters_counter);
if (2 * free_blocks < 3 * dirty_blocks ||
- free_blocks < (dirty_blocks + EXT4_FREEBLOCKS_WATERMARK)) {
+ free_blocks < (dirty_blocks + EXT4_FREECLUSTERS_WATERMARK)) {
/*
* free block count is less than 150% of dirty blocks
* or free blocks is less than watermark