Skip to contentSkip to conversation

linux-next: build failure after merge of the akpm-current tree

PATCH Stephen Rothwell 2 participants 3 messages Jan 21, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

mm/page-writeback.c: In function 'account_page_cleared':
mm/page-writeback.c:2122:23: error: 'struct address_space' has no member named 'backing_dev_info'
dec_bdi_stat(mapping->backing_dev_info,

                       ^

Caused by commit d475bc581640 ("page_writeback: cleanup mess around cancel_dirty_page()") (hmm, that commit has no Signed-off-by from Andrew?) interacting with commit b83ae6d42143 ("fs: remove mapping->backing_dev_info") from the block tree.

I have applied the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Wed, 21 Jan 2015 18:23:41 +1100
Subject: [PATCH] fs: remove mapping->backing_dev_info fix

---
 mm/page-writeback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page-writeback.c +1 -1
index a8397a6923be..ab922616e522 100644
@@ -2119,7 +2119,7 @@ void account_page_cleared(struct page *page, struct address_space *mapping)
 {
 	if (mapping_cap_account_dirty(mapping)) {
 		dec_zone_page_state(page, NR_FILE_DIRTY);
-		dec_bdi_stat(mapping->backing_dev_info,
+		dec_bdi_stat(inode_to_bdi(mapping->host),
 				BDI_RECLAIMABLE);
 		task_io_account_cancelled_write(PAGE_CACHE_SIZE);
 	}
Signature · 5 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 8 lines · Stephen Rothwell

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

mm/page-writeback.c: In function 'account_page_cleared':
mm/page-writeback.c:2122:23: error: 'struct address_space' has no member named 'backing_dev_info'
dec_bdi_stat(mapping->backing_dev_info,

Quoted 6 lines
                       ^

Caused by commit d475bc581640 ("page_writeback: cleanup mess around cancel_dirty_page()") (hmm, that commit has no Signed-off-by from Andrew?) interacting with commit b83ae6d42143 ("fs: remove mapping->backing_dev_info") from the block tree.

Andrew, please drop it. I'll rebase and send it again when the dust settles.

Quoted 31 lines

I have applied the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Wed, 21 Jan 2015 18:23:41 +1100
Subject: [PATCH] fs: remove mapping->backing_dev_info fix

---
 mm/page-writeback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page-writeback.c +1 -2
index a8397a6923be..ab922616e522 100644
@@ -2119,7 +2119,7 @@ void account_page_cleared(struct page *page, struct address_space *mapping)
 {
        if (mapping_cap_account_dirty(mapping)) {
                dec_zone_page_state(page, NR_FILE_DIRTY);
-               dec_bdi_stat(mapping->backing_dev_info,
+               dec_bdi_stat(inode_to_bdi(mapping->host),
                                BDI_RECLAIMABLE);
                task_io_account_cancelled_write(PAGE_CACHE_SIZE);
        }
--

2.1.4

--
Cheers,
Stephen Rothwell [email protected]

#2 lore raw
Quoted 11 lines · Konstantin Khlebnikov
Quoted 10 lines · Stephen Rothwell

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

mm/page-writeback.c: In function 'account_page_cleared':
mm/page-writeback.c:2122:23: error: 'struct address_space' has no member named 'backing_dev_info'
dec_bdi_stat(mapping->backing_dev_info,

                       ^
Quoted 6 lines
Quoted 4 lines

Caused by commit d475bc581640 ("page_writeback: cleanup mess around cancel_dirty_page()") (hmm, that commit has no Signed-off-by from Andrew?) interacting with commit b83ae6d42143 ("fs: remove mapping->backing_dev_info") from the block tree.

Andrew, please drop it. I'll rebase and send it again when the dust settles.

Also I've found potential race with mark_buffer_dirty() and I'm not sure if everything right in remove_from_page_cache phase. Probably it's better to make it bullet-proof and put the final account_page_cleaned under ->tree_lock.

Quoted 32 lines
Quoted 32 lines

I have applied the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Wed, 21 Jan 2015 18:23:41 +1100
Subject: [PATCH] fs: remove mapping->backing_dev_info fix

---
 mm/page-writeback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page-writeback.c +1 -2
index a8397a6923be..ab922616e522 100644
@@ -2119,7 +2119,7 @@ void account_page_cleared(struct page *page, struct address_space *mapping)
 {
        if (mapping_cap_account_dirty(mapping)) {
                dec_zone_page_state(page, NR_FILE_DIRTY);
-               dec_bdi_stat(mapping->backing_dev_info,
+               dec_bdi_stat(inode_to_bdi(mapping->host),
                                BDI_RECLAIMABLE);
                task_io_account_cancelled_write(PAGE_CACHE_SIZE);
        }
--

2.1.4

--
Cheers,
Stephen Rothwell [email protected]