linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the nfsd and xfs trees
@ 2010-02-24  1:36 Stephen Rothwell
  2010-02-24  1:58 ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2010-02-24  1:36 UTC (permalink / raw)
  To: J. Bruce Fields, David Chinner, xfs-masters
  Cc: linux-next, linux-kernel, Ben Myers, Christoph Hellwig

Hi Bruce, David,

After merging the nfsd and xfs trees, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

fs/xfs/linux-2.6/xfs_export.c: In function 'xfs_fs_nfs_commit_metadata':
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 function '_xfs_log_force'

Caused by commit 978ebd97d1426d5708d3f353179ab81f191a7eeb
("xfs_export_operations.commit_metadata") from the nfsd tree interacting
with commit a14a348bff2f99471a28e5928eb6801224c053d8 ("xfs: cleanup up
xfs_log_force calling conventions") from the xfs tree.

I applied the following patch (which may not be correct) for today (and
can keep it as a merge fixup as necessary):

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 24 Feb 2010 12:20:01 +1100
Subject: [PATCH] nfsd: fixup for _xfs_log_force API change

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 fs/xfs/linux-2.6/xfs_export.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_export.c b/fs/xfs/linux-2.6/xfs_export.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(
 
 	xfs_ilock(ip, XFS_ILOCK_SHARED);
 	if (xfs_ipincount(ip)) {
-		error = _xfs_log_force(mp, ip->i_itemp->ili_last_lsn,
-				XFS_LOG_FORCE | XFS_LOG_SYNC, NULL);
+		error = _xfs_log_force_lsn(mp, ip->i_itemp->ili_last_lsn,
+				XFS_LOG_SYNC, NULL);
 	}
 	xfs_iunlock(ip, XFS_ILOCK_SHARED);
 
-- 
1.7.0

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the nfsd and xfs trees
  2010-02-24  1:36 linux-next: build failure after merge of the nfsd and xfs trees Stephen Rothwell
@ 2010-02-24  1:58 ` Dave Chinner
  2010-02-24  2:43   ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Chinner @ 2010-02-24  1:58 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: J. Bruce Fields, xfs-masters, linux-next, linux-kernel,
	Ben Myers, Christoph Hellwig

On Wed, Feb 24, 2010 at 12:36:46PM +1100, Stephen Rothwell wrote:
> Hi Bruce, David,
> 
> After merging the nfsd and xfs trees, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
> 
> fs/xfs/linux-2.6/xfs_export.c: In function 'xfs_fs_nfs_commit_metadata':
> 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 function '_xfs_log_force'
> 
> Caused by commit 978ebd97d1426d5708d3f353179ab81f191a7eeb
> ("xfs_export_operations.commit_metadata") from the nfsd tree interacting
> with commit a14a348bff2f99471a28e5928eb6801224c053d8 ("xfs: cleanup up
> 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 (and
> can keep it as a merge fixup as necessary):
> 
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Wed, 24 Feb 2010 12:20:01 +1100
> Subject: [PATCH] nfsd: fixup for _xfs_log_force API change
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  fs/xfs/linux-2.6/xfs_export.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/xfs/linux-2.6/xfs_export.c b/fs/xfs/linux-2.6/xfs_export.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(
>  
>  	xfs_ilock(ip, XFS_ILOCK_SHARED);
>  	if (xfs_ipincount(ip)) {
> -		error = _xfs_log_force(mp, ip->i_itemp->ili_last_lsn,
> -				XFS_LOG_FORCE | XFS_LOG_SYNC, NULL);
> +		error = _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 <david@fromorbit.com>

Іt 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 vice
versa until one or the other is upstream....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the nfsd and xfs trees
  2010-02-24  1:58 ` Dave Chinner
@ 2010-02-24  2:43   ` Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2010-02-24  2:43 UTC (permalink / raw)
  To: Dave Chinner
  Cc: J. Bruce Fields, xfs-masters, linux-next, linux-kernel,
	Ben Myers, Christoph Hellwig

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

Hi Dave,

On Wed, 24 Feb 2010 12:58:48 +1100 Dave Chinner <david@fromorbit.com> wrote:
>
> I was waiting for this email to come in. ;)

:-)

> Yes, that is the correct fix. Thanks for that, Stephen. Consider it:
> 
> Reviewed-by: Dave Chinner <david@fromorbit.com>

Thanks for the confirmation.

> Іt 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 vice
> versa until one or the other is upstream....

Yep, no problem (I have a system that does that for me).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-24  2:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-24  1:36 linux-next: build failure after merge of the nfsd and xfs trees Stephen Rothwell
2010-02-24  1:58 ` Dave Chinner
2010-02-24  2:43   ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).