Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp595261ybl; Wed, 14 Aug 2019 03:02:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsBwjoRuRi02aQo+bialJ5rlIDApdVnM771UmTMQwd4MficFUNaDPw8RvflHQoi2bhqEJL X-Received: by 2002:a63:c055:: with SMTP id z21mr37596210pgi.380.1565776924383; Wed, 14 Aug 2019 03:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565776924; cv=none; d=google.com; s=arc-20160816; b=MFv2HlHW+p3i031eOalie6e9zjayFc22/+ljwWeJyFj+GF9wZGf+1PyFpQqF7e7Qyf /HAvSPvYaBemlBgYM3kkNDNDaQ++hivYOHXkiPxLB4Y0VauuFRCZoUYGOhtQNd9kfYbH 2VDpR+BwICv2OtqtUOV6BOuuedB40v/3DD8ueTkSeUSH+NXP7Zgo5S16jSLVw2bcaOzh anbnkK4+DMa/UHT9Sqt6rQYAwXgI8DkZcnLj1PDH31tJ3CJr3kOJjvrpKFqrxcFJmcCb NZaSXxmb67a8HdndKx9VQ7eJZV5pDS5gNsYAsYiz0iZmb0qEKpsHqwJZ4eB9icELecD3 Y1VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=voycqCrTC3GWa+xsGp5GBPlfKx5AM8RO6UkQCezRNyU=; b=RO7aBJnfs5manTLCT0qo8131MdpdaXQ4R3XDXFiqPfHT1GoDr5L5nMWeTq39f/4Lpf sbrvYT034P+IBAacMsR5CO/lBg3c4WX69UHuyKs0By4Go6m96EVO7ywsJMl273D4ktgy DsfuMoEbpO4T2Ac9tK4jQBkFmxWAUdWESxhqWsf5S650FQv71+kfOh1LuCorc/LbkEHU f8K6Jtnt6JWB0HILWKZjfOtcWu6mJqYv8tM10q3xZxL4vfa8I7c/m2D3Dc7hnIL1+nK0 Bmdw8zjfCXLVziM9ECCGzdxP1P+8lUegq1bqlW2fGk0MWxI+TVCisDleC1MVgcuNIDs9 Um7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m135si4963604pfd.77.2019.08.14.03.01.48; Wed, 14 Aug 2019 03:02:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726221AbfHNKBp (ORCPT + 99 others); Wed, 14 Aug 2019 06:01:45 -0400 Received: from mgw-01.mpynet.fi ([82.197.21.90]:50874 "EHLO mgw-01.mpynet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfHNKBp (ORCPT ); Wed, 14 Aug 2019 06:01:45 -0400 X-Greylist: delayed 450 seconds by postgrey-1.27 at vger.kernel.org; Wed, 14 Aug 2019 06:01:44 EDT Received: from pps.filterd (mgw-01.mpynet.fi [127.0.0.1]) by mgw-01.mpynet.fi (8.16.0.27/8.16.0.27) with SMTP id x7E9nfqK090644; Wed, 14 Aug 2019 12:54:09 +0300 Received: from ex13.tuxera.com (ex13.tuxera.com [178.16.184.72]) by mgw-01.mpynet.fi with ESMTP id 2ucfarg20m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 14 Aug 2019 12:54:09 +0300 Received: from localhost (194.100.106.190) by tuxera-exch.ad.tuxera.com (10.20.48.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 14 Aug 2019 12:54:08 +0300 Date: Wed, 14 Aug 2019 12:54:08 +0300 From: Rakesh Pandit To: CC: Theodore Ts'o , Andreas Dilger , Subject: [PATCH] ext4: fix warning inside ext4_convert_unwritten_extents_endio Message-ID: <20190814095406.GA38531@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [194.100.106.190] X-ClientProxiedBy: tuxera-exch.ad.tuxera.com (10.20.48.11) To tuxera-exch.ad.tuxera.com (10.20.48.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-14_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=936 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908140100 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Really enable warning when CONFIG_EXT4_DEBUG is set and fix missing first argument. This was introduced in commit ff95ec22cd7f ("ext4: add warning to ext4_convert_unwritten_extents_endio") and splitting extents inside endio would trigger it. Signed-off-by: Rakesh Pandit --- fs/ext4/extents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 92266a2da7d6..f203bf989a4c 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -3813,8 +3813,8 @@ static int ext4_convert_unwritten_extents_endio(handle_t *handle, * illegal. */ if (ee_block != map->m_lblk || ee_len > map->m_len) { -#ifdef EXT4_DEBUG - ext4_warning("Inode (%ld) finished: extent logical block %llu," +#ifdef CONFIG_EXT4_DEBUG + ext4_warning(inode->i_sb, "Inode (%ld) finished: extent logical block %llu," " len %u; IO logical block %llu, len %u", inode->i_ino, (unsigned long long)ee_block, ee_len, (unsigned long long)map->m_lblk, map->m_len); -- 2.17.1