From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.12 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796265535; b=WkVkjhWZxD/VpAMjpreqJFpvz0z+dMh6txdWeYo7LYKGKJxRCv//1Sbv4Cf8v+1CPbe+ lS37RMqgQnfqi8dPHdLA2hZj3trThbg/l3g05DEUxOmShgP2urkZnBRz6/E0hSM/9MTLZ DLmjcVP60lfh8ugF/Fbd1cS7++sMjIs3SAo645WhOX6FqqQOwEFV6DqtUG1vynrz5qSJ6 O1JLaU4DSDrwBi8Rku1W4rKRqJYw0pTHjO9Aqiwh9G+QY8jfEVKlF4LACmuAepKV6Al60 pwchqNyvCGTilZhQG348TpIqYTdUBnCCc7kuPWsgd1PtHlDAtZacCCjyvauaaqrhm5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796265535; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=6KPaFzsox2Pp3ln3O6EyhVeEFz4O9JlwcuzBMSHMJ0c=; b=wUALz7gvux1sgUO3sAQvAr7gOP8N13lzOuELLk0ljKn28Jab6bkXgSu8L+GG0h+wpJSH I/xZHg/9zntKUOeAg7IvWbJLQZeEdepO9Mc4ef8+Y+rKTwq6sfjD/VmvOR5TOXXfShKyJ aQkLxfxSebiuEVfEMoJPLIJQ8Y7Xsy78NwPYIA0aJco7Je/WiO6BW1+HNqtYqGztZ96Y7 N7C1NoHz4SYvKLMGJ7jsuAPhx6lX9iDwzkHHBUOwdOqQDUjQKSWenzUhKTeBJsgis+fxU fPlI6ih50M+UDlBGeOs62r9tF5f7OGvkVUDoV1r5fICiZpMMaRq7ZCMlLR7S9QX7FQw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ausCtpRa; arc=none smtp.remote-ip=198.175.65.12 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 897F5606A32D; Thu, 3 Dec 2026 02:38:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 897F5606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ausCtpRa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796265535; x=1827801535; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6KPaFzsox2Pp3ln3O6EyhVeEFz4O9JlwcuzBMSHMJ0c=; b=ausCtpRaRzvfL23lbLVO3IOe89IBm3faattTqT5rByTuyUsm41ZRoXke KoCQRdN+M7924+f8GOSsVUs+Xq1kpZ9cMg56H1LWtFjRkYoQ+2ruHfPXH oAjamIoMvg7o0jXb82SCdX4n7Y/d/BatLNIxrec5P2vFQn1GFAedG2g64 dvuGfq8AvSSa9myB3gflUZ2aLgP1aQS46tkSOS5dOXkQjno4HNk/mfD6E KUcC70AWoCa5M+nwX22v8kXTjk5xpHyLvloTaOEYseW9ksg8g2v6TKE5A ZGrkRbc5As1PyaRykmYufjQQ6crGq8KnJivHf5zA+9u06iBz73GPTgkQY w==; X-CSE-ConnectionGUID: GEONV2t4Tb2Y2rsRY969yw== X-CSE-MsgGUID: IStn7fo/Q6atmVCLIJOuCg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5127727" X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="5127727" Received: from fmviesa011.fm.intel.com ([10.60.135.151]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 18:38:54 -0800 X-CSE-ConnectionGUID: RxJ6o7OfSpKiSP3zNCYfOg== X-CSE-MsgGUID: TTI9Lk2WTyCRENuOOCDRpw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="15427293" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa011.fm.intel.com with ESMTP; 02 Dec 2026 18:38:48 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xYwib-00000001gjn-4AnP; Thu, 03 Dec 2026 02:38:45 +0000 Date: Thu, 3 Dec 2026 10:38:36 +0800 From: kernel test robot To: Hongling Zeng , linkinjeon@kernel.org, hyc.lee@gmail.com, liubaolin12138@163.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, ntfs@lists.linux.dev, linux-kernel@vger.kernel.org, Hongling Zeng , stable@vger.kernel.org, Baolin Liu Subject: Re: [PATCH v6 2/6] ntfs: roll back the size update when the attribute lookup fails Message-ID: <20261203102615.WgRQ2XEm-lkp@intel.com> References: <20261202054112.1138977-3-zenghongling@kylinos.cn> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202054112.1138977-3-zenghongling@kylinos.cn> Hi Hongling, kernel test robot noticed the following build errors: [auto build test ERROR on next-20261130] [also build test ERROR on v7.4-rc5] [cannot apply to brauner-vfs/vfs.all linus/master v7.4-rc5 v7.4-rc4 v7.4-rc3] [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/Hongling-Zeng/ntfs-roll-back-the-size-update-when-the-attribute-lookup-fails/20261202-134108 base: next-20261130 patch link: https://lore.kernel.org/r/20261202054112.1138977-3-zenghongling%40kylinos.cn patch subject: [PATCH v6 2/6] ntfs: roll back the size update when the attribute lookup fails config: s390-defconfig (https://download.01.org/0day-ci/archive/20261203/20261203102615.WgRQ2XEm-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203102615.WgRQ2XEm-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 | Closes: https://lore.kernel.org/oe-kbuild-all/20261203102615.WgRQ2XEm-lkp@intel.com/ All errors (new ones prefixed by >>): >> fs/ntfs/inode.c:4173:19: error: call to undeclared function 'ntfs_attr_set_data_size'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 4173 | rollback_err = ntfs_attr_set_data_size(ni, | ^ 1 error generated. vim +/ntfs_attr_set_data_size +4173 fs/ntfs/inode.c 4146 4147 /* Undo the deferred size update like ntfs_write_rollback() does. */ 4148 static void ntfs_inode_rollback_enlarge(struct inode *vi, 4149 struct ntfs_inode *mrec_ni, s64 new_data_size, 4150 s64 old_data_size, s64 old_alloc_size) 4151 { 4152 struct ntfs_inode *ni = NTFS_I(vi); 4153 bool stream = ntfs_inode_is_named_stream(ni); 4154 unsigned long flags; 4155 s64 current_data_size; 4156 int rollback_err = 0; 4157 4158 if (stream) 4159 truncate_setsize(vi, old_data_size); 4160 4161 mutex_lock(&mrec_ni->mrec_lock); 4162 read_lock_irqsave(&ni->size_lock, flags); 4163 current_data_size = ni->data_size; 4164 read_unlock_irqrestore(&ni->size_lock, flags); 4165 if (current_data_size == new_data_size) { 4166 /* Free only what the write allocated. */ 4167 s64 keep = max(old_data_size, old_alloc_size); 4168 4169 if (ni->allocated_size > keep) 4170 rollback_err = __ntfs_attr_truncate_vfs(ni, keep, 4171 keep); 4172 if (!rollback_err && ni->data_size != old_data_size) > 4173 rollback_err = ntfs_attr_set_data_size(ni, 4174 old_data_size); 4175 } 4176 mutex_unlock(&mrec_ni->mrec_lock); 4177 if (rollback_err) { 4178 /* The sizes may be inconsistent now. */ 4179 read_lock_irqsave(&ni->size_lock, flags); 4180 current_data_size = ni->data_size; 4181 read_unlock_irqrestore(&ni->size_lock, flags); 4182 i_size_write(vi, current_data_size); 4183 NVolSetErrors(ni->vol); 4184 ntfs_error(vi->i_sb, "Failed to roll back the size update: %d", 4185 rollback_err); 4186 } else if (current_data_size != new_data_size) { 4187 /* A concurrent write took over the extension. */ 4188 i_size_write(vi, current_data_size); 4189 } else if (!stream) { 4190 /* No folio was dropped. */ 4191 i_size_write(vi, old_data_size); 4192 } 4193 } 4194 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki