diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 7cab680418a1..3bbd7f665694 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -74,9 +74,9 @@ static match_table_t tokens = { | |||
74 | {Opt_err, NULL} | 74 | {Opt_err, NULL} |
75 | }; | 75 | }; |
76 | 76 | ||
77 | static unsigned long parse_size(char *str) | 77 | u64 btrfs_parse_size(char *str) |
78 | { | 78 | { |
79 | unsigned long res; | 79 | u64 res; |
80 | int mult = 1; | 80 | int mult = 1; |
81 | char *end; | 81 | char *end; |
82 | char last; | 82 | char last; |
@@ -150,7 +150,8 @@ static int parse_options (char * options, | |||
150 | if (info) { | 150 | if (info) { |
151 | char *num = match_strdup(&args[0]); | 151 | char *num = match_strdup(&args[0]); |
152 | if (num) { | 152 | if (num) { |
153 | info->max_extent = parse_size(num); | 153 | info->max_extent = |
154 | btrfs_parse_size(num); | ||
154 | kfree(num); | 155 | kfree(num); |
155 | 156 | ||
156 | info->max_extent = max_t(u64, | 157 | info->max_extent = max_t(u64, |