diff options
| author | Xiubo Li <[email protected]> | 2024-01-18 06:24:41 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2024-02-07 13:43:29 +0000 |
| commit | bbb20ea993f46743f7429092ddc52f1a5c5428ef (patch) | |
| tree | 934e9518d85b609784b626a8d04b186e9bd837d4 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | libceph: just wait for more data to be available on the socket (diff) | |
| download | kernel-bbb20ea993f46743f7429092ddc52f1a5c5428ef.tar.gz kernel-bbb20ea993f46743f7429092ddc52f1a5c5428ef.zip | |
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.
Link: https://tracker.ceph.com/issues/64035
Fixes: 5b1188847180 ("fscrypt: support crypto data unit size less than filesystem block size")
Signed-off-by: Xiubo Li <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
