This patchset implements code to support encryption of Ext4 filesystem instances that have blocksize less than pagesize. The patchset has been tested on both ppc64 and x86_64 machines. This patchset changes the prototype of the function fscrypt_encrypt_page(). I will make the relevant changes to the rest of the filesystems (e.g. f2fs) and post them in the next version of the patchset. Chandan Rajendra (8): ext4: use EXT4_INODE_ENCRYPT flag to detect encrypted bio fs/buffer.c: make some functions non-static ext4: decrypt all contiguous blocks in a page ext4: decrypt all boundary blocks when doing buffered write ext4: decrypt the block that needs to be partially zeroed ext4: encrypt blocks whose size is less than page size ext4: decrypt blocks whose size is less than page size ext4: enable encryption for blocksize less than page size fs/buffer.c | 6 +- fs/crypto/bio.c | 25 +++- fs/crypto/crypto.c | 80 ++++++++---- fs/ext4/inode.c | 32 +++-- fs/ext4/page-io.c | 58 ++++++--- fs/ext4/readpage.c | 275 +++++++++++++++++++++++++++++++++++++++- fs/ext4/super.c | 9 +- include/linux/buffer_head.h | 4 + include/linux/fscrypt.h | 1 + include/linux/fscrypt_notsupp.h | 19 +-- include/linux/fscrypt_supp.h | 14 +- 11 files changed, 436 insertions(+), 87 deletions(-) -- 2.9.5