diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index d19d98766aa5..f252723b37da 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -40,6 +40,8 @@ | |||
40 | #define DO 0 | 40 | #define DO 0 |
41 | #define UNDO 1 | 41 | #define UNDO 1 |
42 | 42 | ||
43 | extern struct dentry_operations gfs2_dops; | ||
44 | |||
43 | static struct gfs2_sbd *init_sbd(struct super_block *sb) | 45 | static struct gfs2_sbd *init_sbd(struct super_block *sb) |
44 | { | 46 | { |
45 | struct gfs2_sbd *sdp; | 47 | struct gfs2_sbd *sdp; |
@@ -357,6 +359,7 @@ static int init_sb(struct gfs2_sbd *sdp, int silent, int undo) | |||
357 | error = -ENOMEM; | 359 | error = -ENOMEM; |
358 | iput(inode); | 360 | iput(inode); |
359 | } | 361 | } |
362 | sb->s_root->d_op = &gfs2_dops; | ||
360 | out: | 363 | out: |
361 | gfs2_glock_dq_uninit(&sb_gh); | 364 | gfs2_glock_dq_uninit(&sb_gh); |
362 | return error; | 365 | return error; |