UPSTREAM: ceph: always set initial i_blkbits to CEPH_FSCRYPT_BLOCK_SHIFT
The fscrypt code will use i_blkbits to setup ci_data_unit_bits when allocating the new inode, but ceph will initiate i_blkbits ater when filling the inode, which is too late. Since ci_data_unit_bits will only be used by the fscrypt framework so initiating i_blkbits with CEPH_FSCRYPT_BLOCK_SHIFT is safe. Bug: 254441685 Link: https://tracker.ceph.com/issues/64035 Fixes: 5b118884 ("fscrypt: support crypto data unit size less than filesystem block size") Signed-off-by:Xiubo Li <xiubli@redhat.com> Reviewed-by:
Eric Biggers <ebiggers@google.com> Signed-off-by:
Ilya Dryomov <idryomov@gmail.com> (cherry picked from commit bbb20ea9) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: Ib7b941f28983320db884067f013f981c48fe5f78
Loading
Please sign in to comment