Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1073795rwl; Fri, 24 Mar 2023 06:04:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZA0Ufc76r9KA8S+M70I4HFXzxKQWrOLwbLqgzPFIjptDmch/61CBASxn3IS8vZSinvKGzH X-Received: by 2002:a17:90b:3910:b0:23f:e653:4a5a with SMTP id ob16-20020a17090b391000b0023fe6534a5amr2871384pjb.39.1679663094807; Fri, 24 Mar 2023 06:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679663094; cv=none; d=google.com; s=arc-20160816; b=tKGmxK+M022b7gwaVGRVq7FpYfk38fEpVqXWOg4E5z6KmKAxtkFzwcLBsI/SUDqaAi C/7LySv0r2y7VfhiMLaXQ+ScYORc+5N0NJ5ntQABDxC3rWDfJzxcLsamu4RLzk6ueXED HlSHioeXbYaobyXRzfLq4kCNuBq37cdbqBzYk/LgxXcLYHX5J1u48YCYCHewxjWylLvD qsglNKBnFh7gbgy4Y+N1+4O1FgKTkkf8MnCaqjGIXizXQnC0allguwgaXaQE12FKh+x+ RcF1xb4Ch5ycN7jkT20xBjSusxXg+dh/al89kYpPsq8HQmePNm84SwZOIZvRDssGmbS+ lerg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N607FHhGjhsFcmpK1YQ3SBpVC5ExD5qfq7H1bMW7Y2I=; b=nD+iFxNAdqJPJiWXugliP9a/brwOouhnx6zeblldstXzBACZ7eqlBcX9M2JTo6TDfn IXXsBK6JMChddQWwjumSjvNXdK2/uY3pqfywiHgddnDbl7uiRGEyi7WxfV+CS+q0jJcM 1uOzjf+wEZ9hFr/h355CEenVug8KFQu1dta/PqfjqXI62dS2KcCz5EZLUKTzC1Nvve+4 BQ+0v/61njhRYIUAAsE9zorNIEMaxYVu5QSgx/wNDZwiXXBBaWVSNJJ6lXBblqrOsqlX rd/gsuVBN1AMAcJdJJdVBTdIN/4xxvuWuPGGoNIWCAQRZn+RQS6b2FUHjKtXmNqIGXR/ 5nxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JFnzbyYX; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a17090a510f00b0023d4d532a7csi4251808pjh.101.2023.03.24.06.04.02; Fri, 24 Mar 2023 06:04:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JFnzbyYX; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbjCXNAV (ORCPT + 99 others); Fri, 24 Mar 2023 09:00:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231153AbjCXNAV (ORCPT ); Fri, 24 Mar 2023 09:00:21 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF51B30E1 for ; Fri, 24 Mar 2023 06:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679662819; x=1711198819; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0gQbiAEwFlaGRGOxkHt7lqh8x5ufN1CTssACc2w11cA=; b=JFnzbyYXeJcQSB8kPryQDwXBp1dHhndmohXiq/EoFy5pkPEz5mH/x9/d /+ZNM3sX26UEyBJqNhhL7MlmHuhghK2daFt+G6t/EJLGAuTcepcV8CxPR 2ML7TzK3rDwpc7+S+YlFmpG65SdHhlOeQVrecb1QfCxC6l+GXDNsdduak TPE1VNrClGItyiDVshfQyGu7sSXXdQVAG+nsIufpudxYmuz2PWVB9RpFg oF0YwLzV2jOTvWpdyPD3C4lXSdLVWJbmr8ZPwmCD518lZTOSa6wXnNMfy NXENWP7HLzaoR8wJldisl2H/aq0QqEu//qppOp35WF+oAXhnt03aapV9E A==; X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="426040546" X-IronPort-AV: E=Sophos;i="5.98,287,1673942400"; d="scan'208";a="426040546" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 06:00:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="751889599" X-IronPort-AV: E=Sophos;i="5.98,287,1673942400"; d="scan'208";a="751889599" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 24 Mar 2023 06:00:16 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pfh1j-000FKK-2u; Fri, 24 Mar 2023 13:00:15 +0000 Date: Fri, 24 Mar 2023 20:59:44 +0800 From: kernel test robot To: Chung-Chiang Cheng , linux-ext4@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com Cc: oe-kbuild-all@lists.linux.dev, shepjeng@gmail.com, kernel@cccheng.net, Chung-Chiang Cheng , Robbie Ko Subject: Re: [PATCH] ext4: defer updating i_disksize until endio Message-ID: <202303242033.wiXS9jKn-lkp@intel.com> References: <20230324092907.1341457-1-cccheng@synology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230324092907.1341457-1-cccheng@synology.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Chung-Chiang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v6.3-rc3] [also build test WARNING on linus/master] [cannot apply to tytso-ext4/dev next-20230324] [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/Chung-Chiang-Cheng/ext4-defer-updating-i_disksize-until-endio/20230324-173716 patch link: https://lore.kernel.org/r/20230324092907.1341457-1-cccheng%40synology.com patch subject: [PATCH] ext4: defer updating i_disksize until endio config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230324/202303242033.wiXS9jKn-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/9a02b364d2cffe71a45866edf750b0280c8cb990 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Chung-Chiang-Cheng/ext4-defer-updating-i_disksize-until-endio/20230324-173716 git checkout 9a02b364d2cffe71a45866edf750b0280c8cb990 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash fs/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303242033.wiXS9jKn-lkp@intel.com/ All warnings (new ones prefixed by >>): fs/ext4/inode.c: In function 'ext4_da_write_end': >> fs/ext4/inode.c:3115:30: warning: variable 'end' set but not used [-Wunused-but-set-variable] 3115 | unsigned long start, end; | ^~~ vim +/end +3115 fs/ext4/inode.c 64769240bd07f4 Alex Tomas 2008-07-11 3108 64769240bd07f4 Alex Tomas 2008-07-11 3109 static int ext4_da_write_end(struct file *file, 64769240bd07f4 Alex Tomas 2008-07-11 3110 struct address_space *mapping, 64769240bd07f4 Alex Tomas 2008-07-11 3111 loff_t pos, unsigned len, unsigned copied, 64769240bd07f4 Alex Tomas 2008-07-11 3112 struct page *page, void *fsdata) 64769240bd07f4 Alex Tomas 2008-07-11 3113 { 64769240bd07f4 Alex Tomas 2008-07-11 3114 struct inode *inode = mapping->host; 632eaeab1feb5d Mingming Cao 2008-07-11 @3115 unsigned long start, end; 79f0be8d2e6ebd Aneesh Kumar K.V 2008-10-08 3116 int write_mode = (int)(unsigned long)fsdata; 79f0be8d2e6ebd Aneesh Kumar K.V 2008-10-08 3117 74d553aad7926e Theodore Ts'o 2013-04-03 3118 if (write_mode == FALL_BACK_TO_NONDELALLOC) 74d553aad7926e Theodore Ts'o 2013-04-03 3119 return ext4_write_end(file, mapping, pos, 79f0be8d2e6ebd Aneesh Kumar K.V 2008-10-08 3120 len, copied, page, fsdata); 632eaeab1feb5d Mingming Cao 2008-07-11 3121 9bffad1ed2a003 Theodore Ts'o 2009-06-17 3122 trace_ext4_da_write_end(inode, pos, len, copied); 6984aef59814fb Zhang Yi 2021-07-16 3123 6984aef59814fb Zhang Yi 2021-07-16 3124 if (write_mode != CONVERT_INLINE_DATA && 6984aef59814fb Zhang Yi 2021-07-16 3125 ext4_test_inode_state(inode, EXT4_STATE_MAY_INLINE_DATA) && 6984aef59814fb Zhang Yi 2021-07-16 3126 ext4_has_inline_data(inode)) 6984aef59814fb Zhang Yi 2021-07-16 3127 return ext4_write_inline_data_end(inode, pos, len, copied, page); 6984aef59814fb Zhang Yi 2021-07-16 3128 09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 3129 start = pos & (PAGE_SIZE - 1); 632eaeab1feb5d Mingming Cao 2008-07-11 3130 end = start + copied - 1; 64769240bd07f4 Alex Tomas 2008-07-11 3131 64769240bd07f4 Alex Tomas 2008-07-11 3132 /* 4df031ff5876d9 Zhang Yi 2021-07-16 3133 * Since we are holding inode lock, we are sure i_disksize <= 4df031ff5876d9 Zhang Yi 2021-07-16 3134 * i_size. We also know that if i_disksize < i_size, there are 9a02b364d2cffe Chung-Chiang Cheng 2023-03-24 3135 * delalloc writes pending in the range upto i_size. There's no 9a02b364d2cffe Chung-Chiang Cheng 2023-03-24 3136 * need to touch i_disksize since the endio of writeback will 9a02b364d2cffe Chung-Chiang Cheng 2023-03-24 3137 * push i_disksize upto i_size eventually. 4df031ff5876d9 Zhang Yi 2021-07-16 3138 * 4df031ff5876d9 Zhang Yi 2021-07-16 3139 * Note that we defer inode dirtying to generic_write_end() / 4df031ff5876d9 Zhang Yi 2021-07-16 3140 * ext4_da_write_inline_data_end(). 64769240bd07f4 Alex Tomas 2008-07-11 3141 */ 9c3569b50f12e4 Tao Ma 2012-12-10 3142 cc883236b79297 Zhang Yi 2021-07-16 3143 return generic_write_end(file, mapping, pos, len, copied, page, fsdata); 64769240bd07f4 Alex Tomas 2008-07-11 3144 } 64769240bd07f4 Alex Tomas 2008-07-11 3145 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests