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/ecryptfs/main.c | |
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/ecryptfs/main.c')
-rw-r--r-- | fs/ecryptfs/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index b4a6befb1216..6e0e017e6932 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
@@ -550,9 +550,8 @@ static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags | |||
550 | if (IS_ERR(inode)) | 550 | if (IS_ERR(inode)) |
551 | goto out_free; | 551 | goto out_free; |
552 | 552 | ||
553 | s->s_root = d_alloc_root(inode); | 553 | s->s_root = d_make_root(inode); |
554 | if (!s->s_root) { | 554 | if (!s->s_root) { |
555 | iput(inode); | ||
556 | rc = -ENOMEM; | 555 | rc = -ENOMEM; |
557 | goto out_free; | 556 | goto out_free; |
558 | } | 557 | } |