From: sashiko-bot@kernel.org
To: "Jan Kara" <jack@suse.cz>, "Christian Brauner" <brauner@kernel.org>
Cc: "Christoph Hellwig" <hch@infradead.org>,
linux-mm@kvack.org, "Mikhail Rudenko" <xyzzy@yandex-team.ru>,
"Andreas Gruenbacher" <agruenba@redhat.com>
Subject: Re: [PATCH v5 2/8] fs: Fix inode writeback list placement for switched and redirtied inodes
Date: Wed, 02 Dec 2026 14:36:38 +0000 [thread overview]
Message-ID: <sashiko-outbox-245968@kernel.org> (raw)
In-Reply-To: <20261201143522.483168-10-jack@suse.cz>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] fs: undeclared inode_add_dirtytime_head() call in
move_to_dirtytime_locked()
--
commit 3ef967660439f9f374de899cfcacafdd5ea2e364
Author: Jan Kara <jack@suse.cz>
fs: Fix inode writeback list placement for switched and redirtied inodes
This commit updates redirty_tail_locked() and inode_do_switch_wbs() so that
inodes with only dirty timestamps are placed on b_dirty_time instead of
b_dirty.
> diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
> index 65b1af2879e87..ec65ec6e48e7d 100644
> --- a/fs/fs-writeback.c
> +++ b/fs/fs-writeback.c
[ ... ]
> @@ -1542,9 +1541,28 @@ void sb_clear_inode_writeback(struct inode *inode)
> }
> }
>
> +static void move_to_dirtytime_locked(struct inode *inode,
> + struct bdi_writeback *wb)
> +{
> + /* If the inode is used, move it to the tail of b_dirty_time list */
> + if (icount_read(inode)) {
> + inode->dirtied_when = jiffies;
> + inode_io_list_move_locked(inode, wb, &wb->b_dirty_time);
> + return;
> + }
> +
> + /*
> + * Inode is not used. Expedite writeback by moving it to the head
> + * of b_dirty_time list so that it can enter LRU and be evicted.
> + */
> + inode_add_dirtytime_head(inode, wb);
> + wb_io_lists_depopulated(wb);
> +}
[Severity: High]
Does this break the build at this point in the series by calling
inode_add_dirtytime_head() before it is defined?
inode_add_dirtytime_head() is only introduced in the next patch in the
series, commit "fs: Avoid inode dirtying on last iput", so compiling at
this commit fails with an implicit function declaration error and breaks
bisection.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201105733.18997-1-jack@suse.cz?part=2
next prev parent reply other threads:[~2026-12-02 14:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 14:35 [PATCH v5 0/8] fs: Deferred inode reclaim Jan Kara
2026-12-01 14:35 ` [PATCH v5 1/8] writeback: Fix missed lazytime flush Jan Kara
2026-12-01 14:35 ` [PATCH v5 2/8] fs: Fix inode writeback list placement for switched and redirtied inodes Jan Kara
2026-12-02 14:36 ` sashiko-bot [this message]
2026-12-01 14:35 ` [PATCH v5 3/8] fs: Avoid inode dirtying on last iput Jan Kara
2026-12-02 14:36 ` sashiko-bot
2026-12-01 14:35 ` [PATCH v5 4/8] fs: Basic infrastructure for offloading inode reclaim Jan Kara
2026-12-02 14:36 ` sashiko-bot
2026-12-01 14:35 ` [PATCH v5 5/8] fs: Defer reclaim of unlinked inodes Jan Kara
2026-12-01 14:35 ` [PATCH v5 6/8] fs: Defer reclaim of inodes requiring metadata writeback Jan Kara
2026-12-01 14:35 ` [PATCH v5 7/8] fs: Add throttling to deferred inode reclaim Jan Kara
2026-12-01 14:35 ` [PATCH v5 8/8] ext4: Defer inode reclaim if it has preallocations Jan Kara
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=sashiko-outbox-245968@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agruenba@redhat.com \
--cc=brauner@kernel.org \
--cc=hch@infradead.org \
--cc=jack@suse.cz \
--cc=linux-mm@kvack.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=xyzzy@yandex-team.ru \
/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