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/ext4.h | |
parent | e7d5f3156e6827970f75ab27ad7eb0155826eb0b (diff) |
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/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index f97638634e34..21ea65d8bd46 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -2103,13 +2103,13 @@ do { \ | |||
2103 | } while (0) | 2103 | } while (0) |
2104 | 2104 | ||
2105 | #ifdef CONFIG_SMP | 2105 | #ifdef CONFIG_SMP |
2106 | /* Each CPU can accumulate percpu_counter_batch blocks in their local | 2106 | /* Each CPU can accumulate percpu_counter_batch clusters in their local |
2107 | * counters. So we need to make sure we have free blocks more | 2107 | * counters. So we need to make sure we have free clusters more |
2108 | * than percpu_counter_batch * nr_cpu_ids. Also add a window of 4 times. | 2108 | * than percpu_counter_batch * nr_cpu_ids. Also add a window of 4 times. |
2109 | */ | 2109 | */ |
2110 | #define EXT4_FREEBLOCKS_WATERMARK (4 * (percpu_counter_batch * nr_cpu_ids)) | 2110 | #define EXT4_FREECLUSTERS_WATERMARK (4 * (percpu_counter_batch * nr_cpu_ids)) |
2111 | #else | 2111 | #else |
2112 | #define EXT4_FREEBLOCKS_WATERMARK 0 | 2112 | #define EXT4_FREECLUSTERS_WATERMARK 0 |
2113 | #endif | 2113 | #endif |
2114 | 2114 | ||
2115 | static inline void ext4_update_i_disksize(struct inode *inode, loff_t newsize) | 2115 | static inline void ext4_update_i_disksize(struct inode *inode, loff_t newsize) |