Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177845
b: refs/heads/master
c: a7a3f7c
h: refs/heads/master
i:
  177843: 2b7868b
v: v3
  • Loading branch information
Sage Weil authored and Chris Mason committed Dec 17, 2009
1 parent 5b6c00e commit 514f59b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06b2331f8333ec6edf41662757ce8882cc1747d5
refs/heads/master: a7a3f7cadd9bdee569243f7ead9550aa16b60e07
9 changes: 8 additions & 1 deletion trunk/fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
substring_t args[MAX_OPT_ARGS];
char *p, *num;
int intarg;
int ret = 0;

if (!options)
return 0;
Expand Down Expand Up @@ -262,12 +263,18 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
case Opt_discard:
btrfs_set_opt(info->mount_opt, DISCARD);
break;
case Opt_err:
printk(KERN_INFO "btrfs: unrecognized mount option "
"'%s'\n", p);
ret = -EINVAL;
goto out;
default:
break;
}
}
out:
kfree(options);
return 0;
return ret;
}

/*
Expand Down

0 comments on commit 514f59b

Please sign in to comment.