Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254043
b: refs/heads/master
c: ee01a14
h: refs/heads/master
i:
  254041: 24adf84
  254039: 5c4d5ee
v: v3
  • Loading branch information
Al Viro committed Jun 24, 2011
1 parent 2982dd9 commit 8102e3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: d757d71bfc30669a500b72792067e8d1c5d401a5
refs/heads/master: ee01a14d9ddcf3f832f9ceb837888501cb496e27
12 changes: 9 additions & 3 deletions trunk/fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,13 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb)
return dparent;
}

static int cifs_set_super(struct super_block *sb, void *data)
{
struct cifs_mnt_data *mnt_data = data;
sb->s_fs_info = mnt_data->cifs_sb;
return set_anon_super(sb, NULL);
}

static struct dentry *
cifs_do_mount(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data)
Expand Down Expand Up @@ -678,14 +685,14 @@ cifs_do_mount(struct file_system_type *fs_type,
mnt_data.cifs_sb = cifs_sb;
mnt_data.flags = flags;

sb = sget(fs_type, cifs_match_super, set_anon_super, &mnt_data);
sb = sget(fs_type, cifs_match_super, cifs_set_super, &mnt_data);
if (IS_ERR(sb)) {
root = ERR_CAST(sb);
cifs_umount(cifs_sb);
goto out;
}

if (sb->s_fs_info) {
if (sb->s_root) {
cFYI(1, "Use existing superblock");
cifs_umount(cifs_sb);
goto out_shared;
Expand All @@ -694,7 +701,6 @@ cifs_do_mount(struct file_system_type *fs_type,
sb->s_flags = flags;
/* BB should we make this contingent on mount parm? */
sb->s_flags |= MS_NODIRATIME | MS_NOATIME;
sb->s_fs_info = cifs_sb;

rc = cifs_read_super(sb);
if (rc) {
Expand Down

0 comments on commit 8102e3d

Please sign in to comment.