diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 24f609c9ef91..10e848c6d1b5 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -431,10 +431,9 @@ static int gfs2_lookup_root(struct super_block *sb, struct dentry **dptr, | |||
431 | fs_err(sdp, "can't read in %s inode: %ld\n", name, PTR_ERR(inode)); | 431 | fs_err(sdp, "can't read in %s inode: %ld\n", name, PTR_ERR(inode)); |
432 | return PTR_ERR(inode); | 432 | return PTR_ERR(inode); |
433 | } | 433 | } |
434 | dentry = d_alloc_root(inode); | 434 | dentry = d_make_root(inode); |
435 | if (!dentry) { | 435 | if (!dentry) { |
436 | fs_err(sdp, "can't alloc %s dentry\n", name); | 436 | fs_err(sdp, "can't alloc %s dentry\n", name); |
437 | iput(inode); | ||
438 | return -ENOMEM; | 437 | return -ENOMEM; |
439 | } | 438 | } |
440 | *dptr = dentry; | 439 | *dptr = dentry; |