From 7d79fba1af3d41b148009d3dc76d813b07f01f69 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 3 Jun 2024 17:03:54 -0400 Subject: Update bcachefs sources to f81dc88f0c80 bcachefs: bch2_btree_insert() - add btree iter flags Signed-off-by: Kent Overstreet --- libbcachefs/fs-io-direct.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbcachefs/fs-io-direct.c') diff --git a/libbcachefs/fs-io-direct.c b/libbcachefs/fs-io-direct.c index 09d21aef..049b61bc 100644 --- a/libbcachefs/fs-io-direct.c +++ b/libbcachefs/fs-io-direct.c @@ -609,8 +609,10 @@ ssize_t bch2_direct_write(struct kiocb *req, struct iov_iter *iter) if (unlikely(ret)) goto err_put_write_ref; - if (unlikely((req->ki_pos|iter->count) & (block_bytes(c) - 1))) + if (unlikely((req->ki_pos|iter->count) & (block_bytes(c) - 1))) { + ret = -EINVAL; goto err_put_write_ref; + } inode_dio_begin(&inode->v); bch2_pagecache_block_get(inode); -- cgit v1.2.3