aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-06-29 12:54:28 -0400
committerTheodore Ts'o <tytso@mit.edu>2010-06-29 12:54:28 -0400
commite29136f80e775b0310273932b4297a62f5574a29 (patch)
treed10d56b15b7968744ea0becdf61440aae7e609c5 /fs/ext4/ext4.h
parentc67d859e39896e4286249da89c4ca0ef8bd949cb (diff)
ext4: Enhance ext4_grp_locked_error() to take block and function numbers
Also use a macro definition so that __func__ and __LINE__ is implicit. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index d8ec824f5a25..5a41881cafca 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1639,9 +1639,13 @@ extern void __ext4_warning(struct super_block *, const char *,
1639#define ext4_warning(sb, message...) __ext4_warning(sb, __func__, ## message) 1639#define ext4_warning(sb, message...) __ext4_warning(sb, __func__, ## message)
1640extern void ext4_msg(struct super_block *, const char *, const char *, ...) 1640extern void ext4_msg(struct super_block *, const char *, const char *, ...)
1641 __attribute__ ((format (printf, 3, 4))); 1641 __attribute__ ((format (printf, 3, 4)));
1642extern void ext4_grp_locked_error(struct super_block *, ext4_group_t, 1642extern void __ext4_grp_locked_error(const char *, unsigned int, \
1643 const char *, const char *, ...) 1643 struct super_block *, ext4_group_t, \
1644 __attribute__ ((format (printf, 4, 5))); 1644 unsigned long, ext4_fsblk_t, \
1645 const char *, ...)
1646 __attribute__ ((format (printf, 7, 8)));
1647#define ext4_grp_locked_error(sb, grp, message...) \
1648 __ext4_grp_locked_error(__func__, __LINE__, (sb), (grp), ## message)
1645extern void ext4_update_dynamic_rev(struct super_block *sb); 1649extern void ext4_update_dynamic_rev(struct super_block *sb);
1646extern int ext4_update_compat_feature(handle_t *handle, struct super_block *sb, 1650extern int ext4_update_compat_feature(handle_t *handle, struct super_block *sb,
1647 __u32 compat); 1651 __u32 compat);