static s32 __load_upcase_table(struct super_block *sb, sector_t sector,
                               u32 num_sectors, u32 utbl_checksum)
 {
-       int i, ret = FFS_ERROR;
+       int i, ret = -EINVAL;
        u32 j;
        struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
        struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
                        brelse(tmp_bh);
                return FFS_SUCCESS;
        }
-       ret = FFS_ERROR;
+       ret = -EINVAL;
 error:
        if (tmp_bh)
                brelse(tmp_bh);
 
 static s32 __load_default_upcase_table(struct super_block *sb)
 {
-       int i, ret = FFS_ERROR;
+       int i, ret = -EINVAL;
        u32 j;
        struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
 
        return FFS_SUCCESS;
 err_out:
        pr_debug("%s failed\n", __func__);
-       return FFS_ERROR;
+       return -EINVAL;
 }
 
 /* write back all entries in entry set */
 
        /* vaidity check */
        if (ep + count  > ((struct dentry_t *)&es->__buf) + es->num_entries)
-               return FFS_ERROR;
+               return -EINVAL;
 
        dir.dir = GET_CLUSTER_FROM_SECTOR(es->sector);
        dir.flags = es->alloc_flag;
 
 
        /* check the validity of pointer parameters */
        if (!info)
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
 
        /* check the validity of pointer parameters */
        if (!fid || !path || (*path == '\0'))
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
 
        /* check the validity of pointer parameters */
        if (!fid || !path || (*path == '\0'))
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
 
        /* check the validity of pointer parameters */
        if (!buffer)
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
 
        /* check the validity of pointer parameters */
        if (!buffer)
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
 
        /* check the validity of pointer parameters */
        if (!new_path || (*new_path == '\0'))
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
                if (p_fs->dev_ejected)
                        ret = -EIO;
                else
-                       ret = FFS_ERROR;
+                       ret = -EINVAL;
 
                if (p_fs->vol_type == EXFAT)
                        release_entry_set(es);
 
        /* check the validity of pointer parameters */
        if (!clu)
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
 
        /* check the validity of pointer parameters */
        if (!fid || !path || (*path == '\0'))
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* acquire the lock for file system critical section */
        mutex_lock(&p_fs->v_mutex);
 
        /* check the validity of pointer parameters */
        if (!dir_entry)
-               return FFS_ERROR;
+               return -EINVAL;
 
        /* check if the given file ID is opened */
        if (fid->type != TYPE_DIR)