public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: nfs/ceph tree build failure
@ 2010-01-08  0:11 Stephen Rothwell
  2010-01-08  0:18 ` Trond Myklebust
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2010-01-08  0:11 UTC (permalink / raw)
  To: Trond Myklebust
  Cc: linux-next, linux-kernel, Peter Zijlstra, Sage Weil, Wu Fengguang

Hi all,

Today's linux-next build (x86_64 allmodconfig) failed like this:

fs/ceph/addr.c: In function 'ceph_set_page_dirty':
fs/ceph/addr.c:105: error: 'BDI_RECLAIMABLE' undeclared (first use in this function)

Commit 69f0302c4bd28846c3251e25976a2336cd6a6e6f ("VM: Split out the
accounting of unstable writes from BDI_RECLAIMABLE") from the nfs tree
interacts with commit 1d3576fd10f0d7a104204267b81cf84a07028dad ("ceph:
address space operations") from the ceph tree.

I applied the following patch for today (I am not sure it is correct) and
will keep it as a merge fixup as necessary.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 8 Jan 2010 11:04:27 +1100
Subject: [PATCH] ceph: update for BDI_RECLAIMABLE change

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 fs/ceph/addr.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index bf53581..eab46b0 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -101,8 +101,7 @@ static int ceph_set_page_dirty(struct page *page)
 
 		if (mapping_cap_account_dirty(mapping)) {
 			__inc_zone_page_state(page, NR_FILE_DIRTY);
-			__inc_bdi_stat(mapping->backing_dev_info,
-					BDI_RECLAIMABLE);
+			__inc_bdi_stat(mapping->backing_dev_info, BDI_DIRTY);
 			task_io_account_write(PAGE_CACHE_SIZE);
 		}
 		radix_tree_tag_set(&mapping->page_tree,
-- 
1.6.5.7


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

* Re: linux-next: nfs/ceph tree build failure
  2010-01-08  0:11 linux-next: nfs/ceph tree build failure Stephen Rothwell
@ 2010-01-08  0:18 ` Trond Myklebust
  2010-01-08  1:19   ` Stephen Rothwell
  0 siblings, 1 reply; 5+ messages in thread
From: Trond Myklebust @ 2010-01-08  0:18 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, linux-kernel, Peter Zijlstra, Sage Weil, Wu Fengguang

On Fri, 2010-01-08 at 11:11 +1100, Stephen Rothwell wrote: 
> Hi all,
> 
> Today's linux-next build (x86_64 allmodconfig) failed like this:
> 
> fs/ceph/addr.c: In function 'ceph_set_page_dirty':
> fs/ceph/addr.c:105: error: 'BDI_RECLAIMABLE' undeclared (first use in this function)
> 
> Commit 69f0302c4bd28846c3251e25976a2336cd6a6e6f ("VM: Split out the
> accounting of unstable writes from BDI_RECLAIMABLE") from the nfs tree
> interacts with commit 1d3576fd10f0d7a104204267b81cf84a07028dad ("ceph:
> address space operations") from the ceph tree.
> 
> I applied the following patch for today (I am not sure it is correct) and
> will keep it as a merge fixup as necessary.
> 
> -- 
> Cheers,
> Stephen Rothwell                    sfr@canb.auug.org.au
> 
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Fri, 8 Jan 2010 11:04:27 +1100
> Subject: [PATCH] ceph: update for BDI_RECLAIMABLE change
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  fs/ceph/addr.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
> index bf53581..eab46b0 100644
> --- a/fs/ceph/addr.c
> +++ b/fs/ceph/addr.c
> @@ -101,8 +101,7 @@ static int ceph_set_page_dirty(struct page *page)
>  
>  		if (mapping_cap_account_dirty(mapping)) {
>  			__inc_zone_page_state(page, NR_FILE_DIRTY);
> -			__inc_bdi_stat(mapping->backing_dev_info,
> -					BDI_RECLAIMABLE);
> +			__inc_bdi_stat(mapping->backing_dev_info, BDI_DIRTY);
>  			task_io_account_write(PAGE_CACHE_SIZE);
>  		}
>  		radix_tree_tag_set(&mapping->page_tree,

The patch itself looks correct to me.

How would you like me to proceed? Should I revert the VM changes from
the NFS linux-next tree, or would you be OK with keeping the above patch
for now?

Cheers
  Trond


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

* Re: linux-next: nfs/ceph tree build failure
  2010-01-08  0:18 ` Trond Myklebust
@ 2010-01-08  1:19   ` Stephen Rothwell
  2010-01-08  4:51     ` Sage Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2010-01-08  1:19 UTC (permalink / raw)
  To: Trond Myklebust
  Cc: linux-next, linux-kernel, Peter Zijlstra, Sage Weil, Wu Fengguang

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

Hi Trond,

On Thu, 07 Jan 2010 19:18:33 -0500 Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
>
> The patch itself looks correct to me.

Thanks for the confirmation.

> How would you like me to proceed? Should I revert the VM changes from
> the NFS linux-next tree, or would you be OK with keeping the above patch
> for now?

I am OK with keeping the patch - we just need to remember it during the
next merge window.

-- 
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] 5+ messages in thread

* Re: linux-next: nfs/ceph tree build failure
  2010-01-08  1:19   ` Stephen Rothwell
@ 2010-01-08  4:51     ` Sage Weil
  2010-01-08  5:16       ` Stephen Rothwell
  0 siblings, 1 reply; 5+ messages in thread
From: Sage Weil @ 2010-01-08  4:51 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Trond Myklebust, linux-next, linux-kernel, Peter Zijlstra,
	Wu Fengguang

On Fri, 8 Jan 2010, Stephen Rothwell wrote:

> Hi Trond,
> 
> On Thu, 07 Jan 2010 19:18:33 -0500 Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> >
> > The patch itself looks correct to me.
> 
> Thanks for the confirmation.

Yep, looks good.

> > How would you like me to proceed? Should I revert the VM changes from
> > the NFS linux-next tree, or would you be OK with keeping the above patch
> > for now?
> 
> I am OK with keeping the patch - we just need to remember it during the
> next merge window.

Okay.  I can move it to my tree as well, where I assume it'll need to be 
when it comes time to merge.

Thanks-
sage

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

* Re: linux-next: nfs/ceph tree build failure
  2010-01-08  4:51     ` Sage Weil
@ 2010-01-08  5:16       ` Stephen Rothwell
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2010-01-08  5:16 UTC (permalink / raw)
  To: Sage Weil
  Cc: Trond Myklebust, linux-next, linux-kernel, Peter Zijlstra,
	Wu Fengguang

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

Hi Sage,

On Thu, 7 Jan 2010 20:51:45 -0800 (PST) Sage Weil <sage@newdream.net> wrote:
>
> Okay.  I can move it to my tree as well, where I assume it'll need to be 
> when it comes time to merge.

Well, that depends on the order that the two trees get merged into Linus'
tree.  If you get in first, then Trond will have to fix up his tree
before merging (or get Linus to apply my patch as a merge fixup).

One possible thing you could do is to apply both the nfs tree patch and
my patch to your tree (or merge the nfs tree into your tree and apply the
merge fixup), but that will cause a problem if the patch is updated in
the nfs tree (or the nfs tree rebases) ...

So the easiest thing (at leas at this early stage of the development
cycle) is for me to keep applying the merge fixup to my tree when I merge
the later of your two trees into linux-next (this is an automated
process).  Maybe in a few weeks we might do something different.
-- 
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] 5+ messages in thread

end of thread, other threads:[~2010-01-08  5:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08  0:11 linux-next: nfs/ceph tree build failure Stephen Rothwell
2010-01-08  0:18 ` Trond Myklebust
2010-01-08  1:19   ` Stephen Rothwell
2010-01-08  4:51     ` Sage Weil
2010-01-08  5:16       ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox