From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Tue, 23 May 2023 18:03:07 +0200 Subject: [Cluster-devel] [PATCH 10/13] fs: factor out a direct_write_fallback helper In-Reply-To: References: <20230519093521.133226-1-hch@lst.de> <20230519093521.133226-11-hch@lst.de> Message-ID: <20230523160307.GD15391@lst.de> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Mon, May 22, 2023 at 04:19:38PM +0200, Miklos Szeredi wrote: > > + ssize_t direct_written, ssize_t buffered_written) > > +{ > > + struct address_space *mapping = iocb->ki_filp->f_mapping; > > + loff_t pos = iocb->ki_pos, end; > > At this point pos will point after the end of the buffered write (as > per earlier patches), yes? Yes. I'll fix the pos and end calculation.