diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:16:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:16:51 -0400 |
commit | df55c99dc8ee4c3c886a5edc8a4aa6b131c95afc (patch) | |
tree | 6e5ea5a435659fa2dee7410f0b0196bdaf3a2054 /fs/ext4/inode.c | |
parent | e7d5f3156e6827970f75ab27ad7eb0155826eb0b (diff) | |
download | kernel_goldelico_gta04-df55c99dc8ee4c3c886a5edc8a4aa6b131c95afc.zip kernel_goldelico_gta04-df55c99dc8ee4c3c886a5edc8a4aa6b131c95afc.tar.gz kernel_goldelico_gta04-df55c99dc8ee4c3c886a5edc8a4aa6b131c95afc.tar.bz2 |
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 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 557c34f..88dc63a 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 |