summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorYongqiang Yang2011-07-27 03:46:07 +0200
committerTheodore Ts'o2011-07-27 03:46:07 +0200
commitcc7365dfe48cb2191f1572bf69e30d3e58716313 (patch)
tree1d0a533d6ffcee71900894741995a1d0cf91ab0f /fs/ext4/ext4.h
parentext4: rename ext4_add_groupblocks() to ext4_group_add_blocks() (diff)
downloadkernel-qcow2-linux-cc7365dfe48cb2191f1572bf69e30d3e58716313.tar.gz
kernel-qcow2-linux-cc7365dfe48cb2191f1572bf69e30d3e58716313.tar.xz
kernel-qcow2-linux-cc7365dfe48cb2191f1572bf69e30d3e58716313.zip
ext4: let ext4_group_add_blocks() return an error code
This patch lets ext4_group_add_blocks() return an error code if it fails, so that upper functions can handle error correctly. Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index bbe81db76c71..da7ab48948f2 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1799,7 +1799,7 @@ extern void ext4_free_blocks(handle_t *handle, struct inode *inode,
unsigned long count, int flags);
extern int ext4_mb_add_groupinfo(struct super_block *sb,
ext4_group_t i, struct ext4_group_desc *desc);
-extern void ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
+extern int ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
ext4_fsblk_t block, unsigned long count);
extern int ext4_trim_fs(struct super_block *, struct fstrim_range *);