diff options
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 4994f8b0e604..604e12c4e979 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -108,7 +108,7 @@ static int ocfs2_parse_options(struct super_block *sb, char *options, | |||
108 | int is_remount); | 108 | int is_remount); |
109 | static int ocfs2_check_set_options(struct super_block *sb, | 109 | static int ocfs2_check_set_options(struct super_block *sb, |
110 | struct mount_options *options); | 110 | struct mount_options *options); |
111 | static int ocfs2_show_options(struct seq_file *s, struct vfsmount *mnt); | 111 | static int ocfs2_show_options(struct seq_file *s, struct dentry *root); |
112 | static void ocfs2_put_super(struct super_block *sb); | 112 | static void ocfs2_put_super(struct super_block *sb); |
113 | static int ocfs2_mount_volume(struct super_block *sb); | 113 | static int ocfs2_mount_volume(struct super_block *sb); |
114 | static int ocfs2_remount(struct super_block *sb, int *flags, char *data); | 114 | static int ocfs2_remount(struct super_block *sb, int *flags, char *data); |
@@ -569,7 +569,6 @@ static struct inode *ocfs2_alloc_inode(struct super_block *sb) | |||
569 | static void ocfs2_i_callback(struct rcu_head *head) | 569 | static void ocfs2_i_callback(struct rcu_head *head) |
570 | { | 570 | { |
571 | struct inode *inode = container_of(head, struct inode, i_rcu); | 571 | struct inode *inode = container_of(head, struct inode, i_rcu); |
572 | INIT_LIST_HEAD(&inode->i_dentry); | ||
573 | kmem_cache_free(ocfs2_inode_cachep, OCFS2_I(inode)); | 572 | kmem_cache_free(ocfs2_inode_cachep, OCFS2_I(inode)); |
574 | } | 573 | } |
575 | 574 | ||
@@ -1534,9 +1533,9 @@ bail: | |||
1534 | return status; | 1533 | return status; |
1535 | } | 1534 | } |
1536 | 1535 | ||
1537 | static int ocfs2_show_options(struct seq_file *s, struct vfsmount *mnt) | 1536 | static int ocfs2_show_options(struct seq_file *s, struct dentry *root) |
1538 | { | 1537 | { |
1539 | struct ocfs2_super *osb = OCFS2_SB(mnt->mnt_sb); | 1538 | struct ocfs2_super *osb = OCFS2_SB(root->d_sb); |
1540 | unsigned long opts = osb->s_mount_opt; | 1539 | unsigned long opts = osb->s_mount_opt; |
1541 | unsigned int local_alloc_megs; | 1540 | unsigned int local_alloc_megs; |
1542 | 1541 | ||
@@ -1568,8 +1567,7 @@ static int ocfs2_show_options(struct seq_file *s, struct vfsmount *mnt) | |||
1568 | if (osb->preferred_slot != OCFS2_INVALID_SLOT) | 1567 | if (osb->preferred_slot != OCFS2_INVALID_SLOT) |
1569 | seq_printf(s, ",preferred_slot=%d", osb->preferred_slot); | 1568 | seq_printf(s, ",preferred_slot=%d", osb->preferred_slot); |
1570 | 1569 | ||
1571 | if (!(mnt->mnt_flags & MNT_NOATIME) && !(mnt->mnt_flags & MNT_RELATIME)) | 1570 | seq_printf(s, ",atime_quantum=%u", osb->s_atime_quantum); |
1572 | seq_printf(s, ",atime_quantum=%u", osb->s_atime_quantum); | ||
1573 | 1571 | ||
1574 | if (osb->osb_commit_interval) | 1572 | if (osb->osb_commit_interval) |
1575 | seq_printf(s, ",commit=%u", | 1573 | seq_printf(s, ",commit=%u", |