From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Chinner Subject: Re: linux-next: build failure after merge of the nfsd and xfs trees Date: Wed, 24 Feb 2010 12:58:48 +1100 Message-ID: <20100224015848.GE16175@discord.disaster> References: <20100224123646.bb62faea.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from bld-mail19.adl2.internode.on.net ([150.101.137.104]:50452 "EHLO mail.internode.on.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752165Ab0BXB7K (ORCPT ); Tue, 23 Feb 2010 20:59:10 -0500 Content-Disposition: inline In-Reply-To: <20100224123646.bb62faea.sfr@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-ID: To: Stephen Rothwell Cc: "J. Bruce Fields" , xfs-masters@oss.sgi.com, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Myers , Christoph Hellwig On Wed, Feb 24, 2010 at 12:36:46PM +1100, Stephen Rothwell wrote: > Hi Bruce, David, >=20 > After merging the nfsd and xfs trees, today's linux-next build (power= pc > ppc64_defconfig) failed like this: >=20 > fs/xfs/linux-2.6/xfs_export.c: In function 'xfs_fs_nfs_commit_metadat= a': > fs/xfs/linux-2.6/xfs_export.c:230: error: 'XFS_LOG_FORCE' undeclared = (first use in this function) > fs/xfs/linux-2.6/xfs_export.c:230: error: too many arguments to funct= ion '_xfs_log_force' >=20 > Caused by commit 978ebd97d1426d5708d3f353179ab81f191a7eeb > ("xfs_export_operations.commit_metadata") from the nfsd tree interact= ing > with commit a14a348bff2f99471a28e5928eb6801224c053d8 ("xfs: cleanup u= p > xfs_log_force calling conventions") from the xfs tree. I was waiting for this email to come in. ;) > I applied the following patch (which may not be correct) for today (a= nd > can keep it as a merge fixup as necessary): >=20 > From: Stephen Rothwell > Date: Wed, 24 Feb 2010 12:20:01 +1100 > Subject: [PATCH] nfsd: fixup for _xfs_log_force API change >=20 > Signed-off-by: Stephen Rothwell > --- > fs/xfs/linux-2.6/xfs_export.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/fs/xfs/linux-2.6/xfs_export.c b/fs/xfs/linux-2.6/xfs_exp= ort.c > index 8f4d707..846b75a 100644 > --- a/fs/xfs/linux-2.6/xfs_export.c > +++ b/fs/xfs/linux-2.6/xfs_export.c > @@ -226,8 +226,8 @@ xfs_fs_nfs_commit_metadata( > =20 > xfs_ilock(ip, XFS_ILOCK_SHARED); > if (xfs_ipincount(ip)) { > - error =3D _xfs_log_force(mp, ip->i_itemp->ili_last_lsn, > - XFS_LOG_FORCE | XFS_LOG_SYNC, NULL); > + error =3D _xfs_log_force_lsn(mp, ip->i_itemp->ili_last_lsn, > + XFS_LOG_SYNC, NULL); > } > xfs_iunlock(ip, XFS_ILOCK_SHARED); Yes, that is the correct fix. Thanks for that, Stephen. Consider it: Reviewed-by: Dave Chinner =D0=86t would be good if you could keep it as a merge fixup - we don't really want to have to pull the -next NFS tree into the XFS tree or vic= e versa until one or the other is upstream.... Cheers, Dave. --=20 Dave Chinner david@fromorbit.com