fscrypt: introduce fscrypt_decrypt_block_inplace()
[linux-2.6-microblaze.git] / fs / ubifs / crypto.c
index 032efda..22be7ae 100644 (file)
@@ -64,10 +64,11 @@ int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,
        }
 
        ubifs_assert(c, dlen <= UBIFS_BLOCK_SIZE);
-       err = fscrypt_decrypt_page(inode, virt_to_page(&dn->data), dlen,
-                       offset_in_page(&dn->data), block);
+       err = fscrypt_decrypt_block_inplace(inode, virt_to_page(&dn->data),
+                                           dlen, offset_in_page(&dn->data),
+                                           block);
        if (err) {
-               ubifs_err(c, "fscrypt_decrypt_page failed: %i", err);
+               ubifs_err(c, "fscrypt_decrypt_block_inplace() failed: %d", err);
                return err;
        }
        *out_len = clen;