Unionfs: use UNIONFS_NAME macro
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 30 Sep 2007 04:08:29 +0000 (00:08 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 30 Sep 2007 04:08:29 +0000 (00:08 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/main.c

index 72438fb8c5cc2b46e2f3ffc5bc4fbe73ad4d5cf4..615617a07ee7ba62d6cdbecd4e1d4c3d72729929 100644 (file)
@@ -227,7 +227,7 @@ void unionfs_reinterpose(struct dentry *dentry)
 int check_branch(struct nameidata *nd)
 {
        /* XXX: remove in ODF code -- stacking unions allowed there */
-       if (!strcmp(nd->dentry->d_sb->s_type->name, "unionfs"))
+       if (!strcmp(nd->dentry->d_sb->s_type->name, UNIONFS_NAME))
                return -EINVAL;
        if (!nd->dentry->d_inode)
                return -ENOENT;
@@ -722,7 +722,7 @@ static int unionfs_get_sb(struct file_system_type *fs_type,
 
 static struct file_system_type unionfs_fs_type = {
        .owner          = THIS_MODULE,
-       .name           = "unionfs",
+       .name           = UNIONFS_NAME,
        .get_sb         = unionfs_get_sb,
        .kill_sb        = generic_shutdown_super,
        .fs_flags       = FS_REVAL_DOT,