Re: [PATCH] bcachefs: fix iov_iter count underflow on sub-block dio read

2024-02-14 Thread Su Yue
On Wed 14 Feb 2024 at 13:13, Brian Foster wrote: On Fri, Feb 09, 2024 at 10:39:43AM +0800, Su Yue wrote: On Mon 05 Feb 2024 at 14:38, Brian Foster wrote: > On Mon, Feb 05, 2024 at 02:15:36PM -0500, Kent Overstreet > wrote: > > On Mon, Feb 05, 2024 at 10:48:14AM -0500, Brian Foster >

Re: [PATCH] bcachefs: fix iov_iter count underflow on sub-block dio read

2024-02-14 Thread Brian Foster
On Fri, Feb 09, 2024 at 10:39:43AM +0800, Su Yue wrote: > > On Mon 05 Feb 2024 at 14:38, Brian Foster wrote: > > > On Mon, Feb 05, 2024 at 02:15:36PM -0500, Kent Overstreet wrote: > > > On Mon, Feb 05, 2024 at 10:48:14AM -0500, Brian Foster wrote: > > > > bch2_direct_IO_read() checks the request

RE: static assertion failed in fs/bcachefs/journal_io.c

2024-02-14 Thread David Laight
From: Kent Overstreet > Sent: 14 February 2024 01:17 > > bcachefs bugs should go to the bcachefs mailing list; I assume this is > just a case where we need min_t instead of min, if so I'll fix it > shortly You should pretty much never use min_t() - it contains casts that are just waiting to cause