aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/cifsfs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index c0c2751a7573..a7610cfedf0a 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -637,7 +637,10 @@ cifs_do_mount(struct file_system_type *fs_type,
637 mnt_data.cifs_sb = cifs_sb; 637 mnt_data.cifs_sb = cifs_sb;
638 mnt_data.flags = flags; 638 mnt_data.flags = flags;
639 639
640 sb = sget(fs_type, cifs_match_super, cifs_set_super, &mnt_data); 640 /* BB should we make this contingent on mount parm? */
641 flags |= MS_NODIRATIME | MS_NOATIME;
642
643 sb = sget(fs_type, cifs_match_super, cifs_set_super, flags, &mnt_data);
641 if (IS_ERR(sb)) { 644 if (IS_ERR(sb)) {
642 root = ERR_CAST(sb); 645 root = ERR_CAST(sb);
643 cifs_umount(cifs_sb); 646 cifs_umount(cifs_sb);
@@ -648,10 +651,6 @@ cifs_do_mount(struct file_system_type *fs_type,
648 cFYI(1, "Use existing superblock"); 651 cFYI(1, "Use existing superblock");
649 cifs_umount(cifs_sb); 652 cifs_umount(cifs_sb);
650 } else { 653 } else {
651 sb->s_flags = flags;
652 /* BB should we make this contingent on mount parm? */
653 sb->s_flags |= MS_NODIRATIME | MS_NOATIME;
654
655 rc = cifs_read_super(sb); 654 rc = cifs_read_super(sb);
656 if (rc) { 655 if (rc) {
657 root = ERR_PTR(rc); 656 root = ERR_PTR(rc);