Btrfs: Support for online FS resize (grow and shrink)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 7cab680..3bbd7f66 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -74,9 +74,9 @@
{Opt_err, NULL}
};
-static unsigned long parse_size(char *str)
+u64 btrfs_parse_size(char *str)
{
- unsigned long res;
+ u64 res;
int mult = 1;
char *end;
char last;
@@ -150,7 +150,8 @@
if (info) {
char *num = match_strdup(&args[0]);
if (num) {
- info->max_extent = parse_size(num);
+ info->max_extent =
+ btrfs_parse_size(num);
kfree(num);
info->max_extent = max_t(u64,