Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374836
b: refs/heads/master
c: 5e2a4b2
h: refs/heads/master
v: v3
  • Loading branch information
David Sterba authored and Josef Bacik committed May 6, 2013
1 parent 029dff8 commit 2e819fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 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: c2cf52eb71aeb902682e0c1fa29e4e9e4a7f4ffc
refs/heads/master: 5e2a4b25da232a2f4ce264a4b2ae113d0b2a799c
17 changes: 4 additions & 13 deletions trunk/fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
*/
static int btrfs_parse_early_options(const char *options, fmode_t flags,
void *holder, char **subvol_name, u64 *subvol_objectid,
u64 *subvol_rootid, struct btrfs_fs_devices **fs_devices)
struct btrfs_fs_devices **fs_devices)
{
substring_t args[MAX_OPT_ARGS];
char *device_name, *opts, *orig, *p;
Expand Down Expand Up @@ -686,16 +686,8 @@ static int btrfs_parse_early_options(const char *options, fmode_t flags,
}
break;
case Opt_subvolrootid:
intarg = 0;
error = match_int(&args[0], &intarg);
if (!error) {
/* we want the original fs_tree */
if (!intarg)
*subvol_rootid =
BTRFS_FS_TREE_OBJECTID;
else
*subvol_rootid = intarg;
}
printk(KERN_WARNING
"btrfs: 'subvolrootid' mount option is deprecated and has no effect\n");
break;
case Opt_device:
device_name = match_strdup(&args[0]);
Expand Down Expand Up @@ -1073,15 +1065,14 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
fmode_t mode = FMODE_READ;
char *subvol_name = NULL;
u64 subvol_objectid = 0;
u64 subvol_rootid = 0;
int error = 0;

if (!(flags & MS_RDONLY))
mode |= FMODE_WRITE;

error = btrfs_parse_early_options(data, mode, fs_type,
&subvol_name, &subvol_objectid,
&subvol_rootid, &fs_devices);
&fs_devices);
if (error) {
kfree(subvol_name);
return ERR_PTR(error);
Expand Down

0 comments on commit 2e819fa

Please sign in to comment.