Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Delete dio read alignment check

We'll typically fomat devices with the physical blocksize supported, but
the logical blocksize will be smaller.

There's no real need to be checking the blocksize at the filesystem
level, anyways - the block layer has to check this anyways.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

-3
-3
fs/bcachefs/fs-io-direct.c
··· 77 77 78 78 bch2_inode_opts_get(&opts, c, &inode->ei_inode); 79 79 80 - if ((offset|iter->count) & (block_bytes(c) - 1)) 81 - return -EINVAL; 82 - 83 80 ret = min_t(loff_t, iter->count, 84 81 max_t(loff_t, 0, i_size_read(&inode->v) - offset)); 85 82