aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-12-21 16:27:24 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:58 -0400
commitedbd8d4efe4ddaf29a175ae504e2c9a05a96ebee (patch)
treec5156fe3a75e97972186c9a933a631b258490a7e /fs/btrfs/super.c
parent5d4fb734b4cb89a3902d6de309af0f6f3e63fe73 (diff)
Btrfs: Support for online FS resize (grow and shrink)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c7
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
77static unsigned long parse_size(char *str) 77u64 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,