diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:14:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:14:51 -0400 |
commit | e7d5f3156e6827970f75ab27ad7eb0155826eb0b (patch) | |
tree | 7eab0a0660052e4a3fe1bba57a869138fb29e7f4 /fs/ext4/balloc.c | |
parent | cff1dfd767d1ee3c773fd8b57fe310957e5f8abb (diff) |
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, | |||
445 | return 0; | 445 | return 0; |
446 | } | 446 | } |
447 | 447 | ||
448 | int ext4_claim_free_blocks(struct ext4_sb_info *sbi, | 448 | int ext4_claim_free_clusters(struct ext4_sb_info *sbi, |
449 | s64 nblocks, unsigned int flags) | 449 | s64 nclusters, unsigned int flags) |
450 | { | 450 | { |
451 | if (ext4_has_free_blocks(sbi, nblocks, flags)) { | 451 | if (ext4_has_free_blocks(sbi, nclusters, flags)) { |
452 | percpu_counter_add(&sbi->s_dirtyclusters_counter, nblocks); | 452 | percpu_counter_add(&sbi->s_dirtyclusters_counter, nclusters); |
453 | return 0; | 453 | return 0; |
454 | } else | 454 | } else |
455 | return -ENOSPC; | 455 | return -ENOSPC; |