diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
| -rw-r--r-- | fs/cifs/cifsfs.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 8b6e344eb0ba..a7610cfedf0a 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
| @@ -257,7 +257,6 @@ cifs_alloc_inode(struct super_block *sb) | |||
| 257 | static void cifs_i_callback(struct rcu_head *head) | 257 | static void cifs_i_callback(struct rcu_head *head) |
| 258 | { | 258 | { |
| 259 | struct inode *inode = container_of(head, struct inode, i_rcu); | 259 | struct inode *inode = container_of(head, struct inode, i_rcu); |
| 260 | INIT_LIST_HEAD(&inode->i_dentry); | ||
| 261 | kmem_cache_free(cifs_inode_cachep, CIFS_I(inode)); | 260 | kmem_cache_free(cifs_inode_cachep, CIFS_I(inode)); |
| 262 | } | 261 | } |
| 263 | 262 | ||
| @@ -638,7 +637,10 @@ cifs_do_mount(struct file_system_type *fs_type, | |||
| 638 | mnt_data.cifs_sb = cifs_sb; | 637 | mnt_data.cifs_sb = cifs_sb; |
| 639 | mnt_data.flags = flags; | 638 | mnt_data.flags = flags; |
| 640 | 639 | ||
| 641 | 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); | ||
| 642 | if (IS_ERR(sb)) { | 644 | if (IS_ERR(sb)) { |
| 643 | root = ERR_CAST(sb); | 645 | root = ERR_CAST(sb); |
| 644 | cifs_umount(cifs_sb); | 646 | cifs_umount(cifs_sb); |
| @@ -649,10 +651,6 @@ cifs_do_mount(struct file_system_type *fs_type, | |||
| 649 | cFYI(1, "Use existing superblock"); | 651 | cFYI(1, "Use existing superblock"); |
| 650 | cifs_umount(cifs_sb); | 652 | cifs_umount(cifs_sb); |
| 651 | } else { | 653 | } else { |
| 652 | sb->s_flags = flags; | ||
| 653 | /* BB should we make this contingent on mount parm? */ | ||
| 654 | sb->s_flags |= MS_NODIRATIME | MS_NOATIME; | ||
| 655 | |||
| 656 | rc = cifs_read_super(sb); | 654 | rc = cifs_read_super(sb); |
| 657 | if (rc) { | 655 | if (rc) { |
| 658 | root = ERR_PTR(rc); | 656 | root = ERR_PTR(rc); |
| @@ -778,6 +776,7 @@ struct file_system_type cifs_fs_type = { | |||
| 778 | }; | 776 | }; |
| 779 | const struct inode_operations cifs_dir_inode_ops = { | 777 | const struct inode_operations cifs_dir_inode_ops = { |
| 780 | .create = cifs_create, | 778 | .create = cifs_create, |
| 779 | .atomic_open = cifs_atomic_open, | ||
| 781 | .lookup = cifs_lookup, | 780 | .lookup = cifs_lookup, |
| 782 | .getattr = cifs_getattr, | 781 | .getattr = cifs_getattr, |
| 783 | .unlink = cifs_unlink, | 782 | .unlink = cifs_unlink, |
