Skip to content

Commit 023f9ac

Browse files
author
Kent Overstreet
committed
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 <[email protected]>
1 parent 033c9d7 commit 023f9ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/bcachefs/fs-io-direct.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ static int bch2_direct_IO_read(struct kiocb *req, struct iov_iter *iter)
7777

7878
bch2_inode_opts_get(&opts, c, &inode->ei_inode);
7979

80-
if ((offset|iter->count) & (block_bytes(c) - 1))
81-
return -EINVAL;
82-
8380
ret = min_t(loff_t, iter->count,
8481
max_t(loff_t, 0, i_size_read(&inode->v) - offset));
8582

0 commit comments

Comments
 (0)