Joseph Qi
2020-Feb-02 09:01 UTC
[Ocfs2-devel] [PATCH] ocfs2: remove trivial nowait check for buffered read/write
On 20/2/1 15:12, qiwuchen55 at gmail.com wrote:> From: chenqiwu <chenqiwu at xiaomi.com> > > Remove trivial nowait check for buffered read/write, since > buffered read is checked in generic_file_read_iter()-> > generic_file_buffered_read(), buffered write is checked in > generic_write_checks(). >You are right, but check it at the beginning of ocfs2_file_[read|write]_iter() will save much effort for lock ops, so I'd like to leave them there. Thanks, Joseph