Linux EXT4 FS development
 help / color / mirror / Atom feed
From: "yebin (H)" <yebin10@huawei.com>
To: kernel test robot <lkp@intel.com>, Ye Bin <yebin@huaweicloud.com>,
	<tytso@mit.edu>, <adilger.kernel@dilger.ca>,
	<linux-ext4@vger.kernel.org>
Cc: <oe-kbuild-all@lists.linux.dev>, <jack@suse.cz>
Subject: Re: [PATCH v2 2/2] ext4: protect ext4_acquire_dquot against freezing
Date: Thu, 26 Nov 2026 14:10:14 +0800	[thread overview]
Message-ID: <6B07CD46.8060109@huawei.com> (raw)
In-Reply-To: <20261126015002.1lcIDaq1-lkp@intel.com>



On 2026/11/26 1:58, kernel test robot wrote:
> Hi Ye,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on tytso-ext4/dev]
> [also build test ERROR on linus/master v7.4-rc4]
> [cannot apply to brauner-vfs/vfs.all next-20261124]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url:    https://github.com/intel-lab-lkp/linux/commits/Ye-Bin/quota-Forbid-Q_XGETQUOTA-and-Q_XGETNEXTQUOTA-for-frozen-filesystem/20261125-191054
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
> patch link:    https://lore.kernel.org/r/20261125111055.3672233-3-yebin%40huaweicloud.com
> patch subject: [PATCH v2 2/2] ext4: protect ext4_acquire_dquot against freezing
> config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261126/20261126015002.1lcIDaq1-lkp@intel.com/config)
> compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/20261126015002.1lcIDaq1-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/20261126015002.1lcIDaq1-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>     fs/ext4/super.c: In function 'ext4_write_dquot':
>>> fs/ext4/super.c:7165:13: error: 'freeze_protected' undeclared (first use in this function); did you mean 'freeze_processes'?
>      7165 |         if (freeze_protected)
>           |             ^~~~~~~~~~~~~~~~
>           |             freeze_processes
>     fs/ext4/super.c:7165:13: note: each undeclared identifier is reported only once for each function it appears in
>

This is a bit strange. The ext4_write_dquot() function hasn't been modified at
all, and the nearby functions don't seem to have been changed in the latest
version either. It's possible that the patch wasn't generated based on the
latest linux-next code, causing git to apply the patch incorrectly by matching
only the context and line numbers, thus targeting the wrong function. I'll
regenerate the patch and send a new version, and I'll also CC linux-fsdevel
this time.

>
> vim +7165 fs/ext4/super.c
>
>    7144	
>    7145	static int ext4_write_dquot(struct dquot *dquot)
>    7146	{
>    7147		int ret, err;
>    7148		handle_t *handle;
>    7149		struct inode *inode;
>    7150	
>    7151		inode = dquot_to_inode(dquot);
>    7152		handle = ext4_journal_start(inode, EXT4_HT_QUOTA,
>    7153					    EXT4_QUOTA_TRANS_BLOCKS(dquot->dq_sb));
>    7154		if (IS_ERR(handle))
>    7155			return PTR_ERR(handle);
>    7156		ret = dquot_commit(dquot);
>    7157		if (ret < 0)
>    7158			ext4_error_err(dquot->dq_sb, -ret,
>    7159				       "Failed to commit dquot type %d",
>    7160				       dquot->dq_id.type);
>    7161		err = ext4_journal_stop(handle);
>    7162		if (!ret)
>    7163			ret = err;
>    7164	
>> 7165		if (freeze_protected)
>    7166			sb_end_intwrite(dquot->dq_sb);
>    7167	
>    7168		return ret;
>    7169	}
>    7170	
>

  reply	other threads:[~2026-11-26  6:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 11:10 [PATCH v2 0/2] ext4: protect quota acquisition against filesystem freezing Ye Bin
2026-11-25 11:10 ` [PATCH v2 1/2] quota: Forbid Q_XGETQUOTA and Q_XGETNEXTQUOTA for frozen filesystem Ye Bin
2026-11-25 16:29   ` Jan Kara
2026-11-25 11:10 ` [PATCH v2 2/2] ext4: protect ext4_acquire_dquot against freezing Ye Bin
2026-11-25 11:30   ` sashiko-bot
2026-11-25 15:19   ` kernel test robot
2026-11-25 16:33   ` Jan Kara
2026-11-25 17:58   ` kernel test robot
2026-11-26  6:10     ` yebin (H) [this message]
2026-11-25 11:30 ` [PATCH v2 0/2] ext4: protect quota acquisition against filesystem freezing sashiko-bot

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=6B07CD46.8060109@huawei.com \
    --to=yebin10@huawei.com \
    --cc=adilger.kernel@dilger.ca \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tytso@mit.edu \
    --cc=yebin@huaweicloud.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