Re: fscrypt: in-place decrypt vs. out-of-place encrypt?

2016-09-22 Thread Richard Weinberger
Ted, On 22.09.2016 15:14, Theodore Ts'o wrote: > On Thu, Sep 22, 2016 at 10:49:41AM +0200, Richard Weinberger wrote: >> >> While reading the fscrypt code I noticed that some functions use the bounce >> pages >> and some not. >> fscrypt_decrypt_page() and fscrypt_decrypt_bio_pages() work in-place

Re: fscrypt: in-place decrypt vs. out-of-place encrypt?

2016-09-22 Thread Richard Weinberger
Ted, On 22.09.2016 15:14, Theodore Ts'o wrote: > On Thu, Sep 22, 2016 at 10:49:41AM +0200, Richard Weinberger wrote: >> >> While reading the fscrypt code I noticed that some functions use the bounce >> pages >> and some not. >> fscrypt_decrypt_page() and fscrypt_decrypt_bio_pages() work in-place

Re: fscrypt: in-place decrypt vs. out-of-place encrypt?

2016-09-22 Thread Theodore Ts'o
On Thu, Sep 22, 2016 at 10:49:41AM +0200, Richard Weinberger wrote: > > While reading the fscrypt code I noticed that some functions use the bounce > pages > and some not. > fscrypt_decrypt_page() and fscrypt_decrypt_bio_pages() work in-place while > fscrypt_encrypt_page() and

Re: fscrypt: in-place decrypt vs. out-of-place encrypt?

2016-09-22 Thread Theodore Ts'o
On Thu, Sep 22, 2016 at 10:49:41AM +0200, Richard Weinberger wrote: > > While reading the fscrypt code I noticed that some functions use the bounce > pages > and some not. > fscrypt_decrypt_page() and fscrypt_decrypt_bio_pages() work in-place while > fscrypt_encrypt_page() and

fscrypt: in-place decrypt vs. out-of-place encrypt?

2016-09-22 Thread Richard Weinberger
Hi! While reading the fscrypt code I noticed that some functions use the bounce pages and some not. fscrypt_decrypt_page() and fscrypt_decrypt_bio_pages() work in-place while fscrypt_encrypt_page() and fscrypt_zeroout_range() use a bounce page. So, both ext4 and f2fs encrypt data using an extra

fscrypt: in-place decrypt vs. out-of-place encrypt?

2016-09-22 Thread Richard Weinberger
Hi! While reading the fscrypt code I noticed that some functions use the bounce pages and some not. fscrypt_decrypt_page() and fscrypt_decrypt_bio_pages() work in-place while fscrypt_encrypt_page() and fscrypt_zeroout_range() use a bounce page. So, both ext4 and f2fs encrypt data using an extra