Return-Path: Received: from mail-io1-f65.google.com ([209.85.166.65]:37283 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389389AbeKVQUq (ORCPT ); Thu, 22 Nov 2018 11:20:46 -0500 Received: by mail-io1-f65.google.com with SMTP id a3so5794322ioc.4 for ; Wed, 21 Nov 2018 21:42:57 -0800 (PST) MIME-Version: 1.0 References: <20181121024400.4346-1-devel@etsukata.com> <20181121024400.4346-4-devel@etsukata.com> <20181121092314.GB10667@infradead.org> In-Reply-To: <20181121092314.GB10667@infradead.org> From: Eiichi Tsukata Date: Thu, 22 Nov 2018 14:42:41 +0900 Message-ID: Subject: Re: [PATCH v1 3/4] f2fs: fix race between llseek SEEK_END and write To: hch@infradead.org Cc: andi@firstfloor.org, Chris Mason , Josef Bacik , David Sterba , "Theodore Ts'o" , Andreas Dilger , Jaegeuk Kim , Chao Yu , Miklos Szeredi , Bob Peterson , Andreas Gruenbacher , Alexander Viro , linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-unionfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-ext4-owner@vger.kernel.org List-ID: 2018=E5=B9=B411=E6=9C=8821=E6=97=A5(=E6=B0=B4) 18:23 Christoph Hellwig : > > On Wed, Nov 21, 2018 at 11:43:59AM +0900, Eiichi Tsukata wrote: > > This patch itself seems to be just a cleanup but with the > > commit b25bd1d9fd87 ("vfs: fix race between llseek SEEK_END and write") > > it fixes race. > > Please move this patch to the beginning of the series and replace > the commit log with something like the one below. Note that your > commit id is different from the one that will appear once applied > upstream, so the aboe isn't too helpful. > > --- > f2fs: use generic_file_llseek > > f2fs always passes inode->i_sb->s_maxbytes to generic_file_llseek_size, > and thus should simply use generic_file_llseek. For now this is a just > a cleanup, but it will allow f2fs to pick up a race fix in > generic_file_llseek for free. Thanks, I'll fix it in v2.