diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-10 03:14:51 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-10 03:14:51 +0400 |
commit | e7d5f3156e6827970f75ab27ad7eb0155826eb0b (patch) | |
tree | 7eab0a0660052e4a3fe1bba57a869138fb29e7f4 /fs/ext4/balloc.c | |
parent | cff1dfd767d1ee3c773fd8b57fe310957e5f8abb (diff) | |
download | linux-e7d5f3156e6827970f75ab27ad7eb0155826eb0b.tar.xz |
ext4: rename ext4_claim_free_blocks() to ext4_claim_free_clusters()
This function really claims a number of free clusters, not blocks, so
rename it so it's clearer what's going on.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r-- | fs/ext4/balloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 3d07c35c7089..af0c5357e35a 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c @@ -445,11 +445,11 @@ static int ext4_has_free_blocks(struct ext4_sb_info *sbi, return 0; } -int ext4_claim_free_blocks(struct ext4_sb_info *sbi, - s64 nblocks, unsigned int flags) +int ext4_claim_free_clusters(struct ext4_sb_info *sbi, + s64 nclusters, unsigned int flags) { - if (ext4_has_free_blocks(sbi, nblocks, flags)) { - percpu_counter_add(&sbi->s_dirtyclusters_counter, nblocks); + if (ext4_has_free_blocks(sbi, nclusters, flags)) { + percpu_counter_add(&sbi->s_dirtyclusters_counter, nclusters); return 0; } else return -ENOSPC; |