diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-08 22:15:13 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:35 -0400 |
| commit | 48fde701aff662559b38d9a609574068f22d00fe (patch) | |
| tree | aa6b203dc671b51d58575b65eb08310ff8309b60 /fs/gfs2 | |
| parent | 6b4231e2f92adbcf96fb2a3fa751d7ca0a61b21f (diff) | |
switch open-coded instances of d_make_root() to new helper
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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; |
