From: kbuild test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>
Cc: kbuild-all@01.org, jaegeuk@kernel.org,
linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, chao@kernel.org,
Chao Yu <yuchao0@huawei.com>
Subject: Re: [PATCH v2] Revert: "f2fs: check last page index in cached bio to decide submission"
Date: Thu, 27 Sep 2018 03:08:35 +0800 [thread overview]
Message-ID: <201809270321.fKoCADih%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180926094730.100570-1-yuchao0@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 3540 bytes --]
Hi Chao,
I love your patch! Perhaps something to improve:
[auto build test WARNING on f2fs/dev-test]
[also build test WARNING on v4.19-rc5 next-20180926]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Chao-Yu/Revert-f2fs-check-last-page-index-in-cached-bio-to-decide-submission/20180926-195004
base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
fs/f2fs/checkpoint.c: In function '__f2fs_write_meta_page':
>> fs/f2fs/checkpoint.c:283:8: warning: passing argument 3 of 'f2fs_submit_merged_write_cond' makes pointer from integer without a cast [-Wint-conversion]
page->index, 0, META);
^~~~
In file included from fs/f2fs/checkpoint.c:17:0:
fs/f2fs/f2fs.h:3030:6: note: expected 'struct page *' but argument is of type 'long unsigned int'
void f2fs_submit_merged_write_cond(struct f2fs_sb_info *sbi,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
fs/f2fs/data.c: In function '__write_data_page':
>> fs/f2fs/data.c:1955:45: warning: passing argument 3 of 'f2fs_submit_merged_write_cond' makes pointer from integer without a cast [-Wint-conversion]
f2fs_submit_merged_write_cond(sbi, inode, page->index, 0, DATA);
^~~~
fs/f2fs/data.c:423:6: note: expected 'struct page *' but argument is of type 'long unsigned int'
void f2fs_submit_merged_write_cond(struct f2fs_sb_info *sbi,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
fs/f2fs/node.c: In function '__write_node_page':
>> fs/f2fs/node.c:1565:7: warning: passing argument 3 of 'f2fs_submit_merged_write_cond' makes pointer from integer without a cast [-Wint-conversion]
page->index, 0, NODE);
^~~~
In file included from fs/f2fs/node.c:16:0:
fs/f2fs/f2fs.h:3030:6: note: expected 'struct page *' but argument is of type 'long unsigned int'
void f2fs_submit_merged_write_cond(struct f2fs_sb_info *sbi,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/f2fs_submit_merged_write_cond +283 fs/f2fs/checkpoint.c
262
263 static int __f2fs_write_meta_page(struct page *page,
264 struct writeback_control *wbc,
265 enum iostat_type io_type)
266 {
267 struct f2fs_sb_info *sbi = F2FS_P_SB(page);
268
269 trace_f2fs_writepage(page, META);
270
271 if (unlikely(f2fs_cp_error(sbi)))
272 goto redirty_out;
273 if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING)))
274 goto redirty_out;
275 if (wbc->for_reclaim && page->index < GET_SUM_BLOCK(sbi, 0))
276 goto redirty_out;
277
278 f2fs_do_write_meta_page(sbi, page, io_type);
279 dec_page_count(sbi, F2FS_DIRTY_META);
280
281 if (wbc->for_reclaim)
282 f2fs_submit_merged_write_cond(sbi, page->mapping->host,
> 283 page->index, 0, META);
284
285 unlock_page(page);
286
287 if (unlikely(f2fs_cp_error(sbi)))
288 f2fs_submit_merged_write(sbi, META);
289
290 return 0;
291
292 redirty_out:
293 redirty_page_for_writepage(wbc, page);
294 return AOP_WRITEPAGE_ACTIVATE;
295 }
296
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65106 bytes --]
prev parent reply other threads:[~2018-09-26 19:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-26 9:47 Chao Yu
2018-09-26 19:08 ` kbuild test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201809270321.fKoCADih%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=jaegeuk@kernel.org \
--cc=kbuild-all@01.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=yuchao0@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®