Re: [PATCH] ocfs2: remove trivial nowait check for buffered read/write
From: Joseph Qi
Date: Sun Feb 02 2020 - 04:03:36 EST
On 20/2/1 15:12, qiwuchen55@xxxxxxxxx wrote:
> From: chenqiwu <chenqiwu@xxxxxxxxxx>
>
> 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