From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796062877; b=HFDEDr/VbENA8T2Nt3ixnEmpWssjkqAH422xuVNAHqYeottUZ1QNYwrFXBA2ovQMF0D0 YXP4Ap8aTYXygnCNZ8ROgNJQ1p0aJaTWYYssuEeEzJDHlCQwpSYABKQsgekmoydKFstji /cAu1orCv1Nr/loeZXhpuWHoTN5g1WYgQS3z3pMItsmPs3hXFmp8kd50Y6235i9/aA8yn 0RYEawRiSJMRkPFqJHkANf8eEOi4X//c9PMwMzuze6AM31YBH0Kc9rPyINwMpgUD+MWn0 JwGeSNVRmm1WllHVtfJafBUO4B9ocLlACd3m4ut7mhAbCBRQmPvYDC7s2vNq0JPce0w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796062877; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-Id: In-Reply-To:References:X-Mailer:Mime-Version:Content-Type: Content-Transfer-Encoding; bh=w/Ww5PZzceMPRYnl0ZHS2ZjDJPu5G3FRF4Si8hkIlTY=; b=k0USiXr+JfSBOKrXRWt9tocvC3go/LDCu4i0N4WKJZ/L3ZBwB7Q4anO2zhcpMz/Pu9SV q2r6VyxTNt3lLQgUuqbK66yCfAqGySqrhy3ulXg3kP30wo4wpoTREp/4XyOSrXiuxMR1B tomuIMKl4c25tkMnU0MAKVrinyYXNAX8UeoR/Z2QjlKYSrdQiGv8TU64qAL/91hIN0yTv BtAoa9iMJMYqyv/5pfawrs2KTtTA7dJnB08PaE0JlsFfQVnqLRZh1cL7+Rf2H2At4hIJR gdej9IsxW/GN9tENjyVAFcq5/HCutmoNHUkAKhdKDZ0dsCkI6XbqJgN+6LEfOv76mlg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=olnvie8e; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5BD3606A31C; Mon, 30 Nov 2026 18:21:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=olnvie8e Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21DE91F00896; Mon, 30 Nov 2026 18:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796062877; bh=w/Ww5PZzceMPRYnl0ZHS2ZjDJPu5G3FRF4Si8hkIlTY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=olnvie8e7NZMYzZf4A22dxQHSOVABoroUwemhwTEHXMnHGnP7SqMlZIZFVOkmLtMD A4QlfzvXrome7WUIusYXk7gTSpTcNaMN+kP+v8oM6P/wNTVjpexeiq1Rfsa5jf3B5i qQl+1sr/1D2T7uzWRYTQ58zd9+7a0RqARL2x5F0U= Date: Mon, 30 Nov 2026 10:21:16 -0800 From: Andrew Morton To: Mark Brown Cc: Amir Goldstein , Christian Brauner , David Hildenbrand , Henry Martin , Linux Kernel Mailing List , Linux Next Mailing List , Mike Rapoport , Vlastimil Babka Subject: Re: linux-next: manual merge of the fs-next tree with the mm tree Message-Id: <20261130102116.72bfca0eee160754db2dca70@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 30 Nov 2026 15:01:49 +0000 Mark Brown wrote: > Hi all, > > Today's linux-next merge of the fs-next tree got a conflict in: > > mm/filemap.c > > between commit: > > caa76be2dac5a ("mm: report all-zero cachestat for DAX mappings") > > from the mm tree and commit: > > f9b088d910e88 ("fs: add ->f_real() file operation") > > from the fs-next tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. OK, thanks. "mm: report all-zero cachestat for DAX mappings" (https://patch.msgid.link/20261125030432.274396-1-bsdhenrymartin@gmail.com) fixes an oops so I have it lined up for 7.4-rcX, cc:stable. Which is going to mess up fs-next :( > diff --cc mm/filemap.c > index 5f0c52939805d,beb15d48c5dfd..0000000000000 > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@@ -4826,11 -4841,8 +4834,11 @@@ SYSCALL_DEFINE4(cachestat, unsigned int > last_index = > csr.len == 0 ? ULONG_MAX : (csr.off + csr.len - 1) >> PAGE_SHIFT; > memset(&cs, 0, sizeof(struct cachestat)); > - mapping = fd_file(f)->f_mapping; > + mapping = real_file->f_mapping; > - filemap_cachestat(mapping, first_index, last_index, &cs); > + > + /* DAX mappings have no page cache; report all zeros. */ > + if (!dax_mapping(mapping)) > + filemap_cachestat(mapping, first_index, last_index, &cs); > > if (copy_to_user(cstat, &cs, sizeof(struct cachestat))) > return -EFAULT;