]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/ubifs/super.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / fs / ubifs / super.c
index e85d5a47aeac4fedf5c75e71f60818c5d21f8e36..e08aa04fc8351ca03db6479f94a33c0fe1ff845b 100644 (file)
@@ -198,7 +198,6 @@ struct inode *ubifs_iget(struct super_block *sb, unsigned long inum)
                }
                memcpy(ui->data, ino->data, ui->data_len);
                ((char *)ui->data)[ui->data_len] = '\0';
-               inode->i_link = ui->data;
                break;
        case S_IFBLK:
        case S_IFCHR:
@@ -1210,7 +1209,8 @@ static int mount_ubifs(struct ubifs_info *c)
                bu_init(c);
 
        if (!c->ro_mount) {
-               c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ,
+               c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ + \
+                                              UBIFS_CIPHER_BLOCK_SIZE,
                                               GFP_KERNEL);
                if (!c->write_reserve_buf)
                        goto out_free;
@@ -1623,7 +1623,8 @@ static int ubifs_remount_rw(struct ubifs_info *c)
                goto out;
        }
 
-       c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ, GFP_KERNEL);
+       c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ + \
+                                      UBIFS_CIPHER_BLOCK_SIZE, GFP_KERNEL);
        if (!c->write_reserve_buf) {
                err = -ENOMEM;
                goto out;
@@ -2000,7 +2001,7 @@ static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi)
 
 #ifndef CONFIG_UBIFS_FS_ENCRYPTION
 struct fscrypt_operations ubifs_crypt_operations = {
-       .is_encrypted           = ubifs_crypt_is_encrypted,
+       .is_encrypted           = __ubifs_crypt_is_encrypted,
 };
 #endif