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/inode.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/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 f9198d7875cc..557c34ffa05b 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -1071,7 +1071,7 @@ repeat: | |||
1071 | * We do still charge estimated metadata to the sb though; | 1071 | * We do still charge estimated metadata to the sb though; |
1072 | * we cannot afford to run out of free blocks. | 1072 | * we cannot afford to run out of free blocks. |
1073 | */ | 1073 | */ |
1074 | if (ext4_claim_free_blocks(sbi, md_needed + 1, 0)) { | 1074 | if (ext4_claim_free_clusters(sbi, md_needed + 1, 0)) { |
1075 | dquot_release_reservation_block(inode, EXT4_C2B(sbi, 1)); | 1075 | dquot_release_reservation_block(inode, EXT4_C2B(sbi, 1)); |
1076 | if (ext4_should_retry_alloc(inode->i_sb, &retries)) { | 1076 | if (ext4_should_retry_alloc(inode->i_sb, &retries)) { |
1077 | yield(); | 1077 | yield(); |