diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index f6bca05a4b4c..8829f8099851 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2964,13 +2964,21 @@ ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size); | |||
2964 | /* super.c */ | 2964 | /* super.c */ |
2965 | int btrfs_parse_options(struct btrfs_root *root, char *options); | 2965 | int btrfs_parse_options(struct btrfs_root *root, char *options); |
2966 | int btrfs_sync_fs(struct super_block *sb, int wait); | 2966 | int btrfs_sync_fs(struct super_block *sb, int wait); |
2967 | void btrfs_printk(struct btrfs_fs_info *fs_info, const char *fmt, ...); | ||
2967 | void __btrfs_std_error(struct btrfs_fs_info *fs_info, const char *function, | 2968 | void __btrfs_std_error(struct btrfs_fs_info *fs_info, const char *function, |
2968 | unsigned int line, int errno); | 2969 | unsigned int line, int errno, const char *fmt, ...); |
2969 | 2970 | ||
2970 | #define btrfs_std_error(fs_info, errno) \ | 2971 | #define btrfs_std_error(fs_info, errno) \ |
2971 | do { \ | 2972 | do { \ |
2972 | if ((errno)) \ | 2973 | if ((errno)) \ |
2973 | __btrfs_std_error((fs_info), __func__, __LINE__, (errno));\ | 2974 | __btrfs_std_error((fs_info), __func__, \ |
2975 | __LINE__, (errno), NULL); \ | ||
2976 | } while (0) | ||
2977 | |||
2978 | #define btrfs_error(fs_info, errno, fmt, args...) \ | ||
2979 | do { \ | ||
2980 | __btrfs_std_error((fs_info), __func__, __LINE__, \ | ||
2981 | (errno), fmt, ##args); \ | ||
2974 | } while (0) | 2982 | } while (0) |
2975 | 2983 | ||
2976 | void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function, | 2984 | void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function, |