|
@@ -2007,11 +2007,6 @@ static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi)
|
|
return c;
|
|
return c;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifndef CONFIG_UBIFS_FS_ENCRYPTION
|
|
|
|
-const struct fscrypt_operations ubifs_crypt_operations = {
|
|
|
|
-};
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
|
|
static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
|
|
{
|
|
{
|
|
struct ubifs_info *c = sb->s_fs_info;
|
|
struct ubifs_info *c = sb->s_fs_info;
|
|
@@ -2054,7 +2049,9 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
|
|
sb->s_maxbytes = c->max_inode_sz = MAX_LFS_FILESIZE;
|
|
sb->s_maxbytes = c->max_inode_sz = MAX_LFS_FILESIZE;
|
|
sb->s_op = &ubifs_super_operations;
|
|
sb->s_op = &ubifs_super_operations;
|
|
sb->s_xattr = ubifs_xattr_handlers;
|
|
sb->s_xattr = ubifs_xattr_handlers;
|
|
|
|
+#ifdef CONFIG_UBIFS_FS_ENCRYPTION
|
|
sb->s_cop = &ubifs_crypt_operations;
|
|
sb->s_cop = &ubifs_crypt_operations;
|
|
|
|
+#endif
|
|
|
|
|
|
mutex_lock(&c->umount_mutex);
|
|
mutex_lock(&c->umount_mutex);
|
|
err = mount_ubifs(c);
|
|
err = mount_ubifs(c);
|