Wrapfs: use d_make_root
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 26 May 2013 03:23:42 +0000 (23:23 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Dec 2016 03:11:35 +0000 (22:11 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/main.c

index 130aca66a6d4cee9d0f101ad28b0a9830e5686d7..3aa58eac12824d427b0f115bd4893f856ee9a486 100644 (file)
@@ -70,7 +70,7 @@ static int wrapfs_read_super(struct super_block *sb, void *raw_data, int silent)
                err = PTR_ERR(inode);
                goto out_sput;
        }
-       sb->s_root = d_alloc_root(inode);
+       sb->s_root = d_make_root(inode);
        if (!sb->s_root) {
                err = -ENOMEM;
                goto out_iput;
@@ -90,7 +90,7 @@ static int wrapfs_read_super(struct super_block *sb, void *raw_data, int silent)
 
        /*
         * No need to call interpose because we already have a positive
-        * dentry, which was instantiated by d_alloc_root.  Just need to
+        * dentry, which was instantiated by d_make_root.  Just need to
         * d_rehash it.
         */
        d_rehash(sb->s_root);