Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3312220imu; Sun, 11 Nov 2018 12:08:27 -0800 (PST) X-Google-Smtp-Source: AJdET5fXJIW7iR+hf3fA6HMBS1oeif5LjNZhVDvb7BkCkH0vckURTJlIvsXoc10hGF+t4DfEltJz X-Received: by 2002:a63:5224:: with SMTP id g36-v6mr15262259pgb.253.1541966907779; Sun, 11 Nov 2018 12:08:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541966907; cv=none; d=google.com; s=arc-20160816; b=eSEw2P/DfT1we62LJWdxVdmokup/I54E2CKZgaQB013M8p44vQnCdaQXAP9dpszzbu oglyp9NEUjZX8oW3qTCElk92B4dZc5QfecS8K4bMDVfLoBgKDIt58P6B1HFhNZTYsi5U qphTGyIK2NCZBYjltviB1GIg0KBp/iMZbWE/PuFB/rAssE+PuAeai0GWgnqKFz8w1s+F 8NndZxBmHCa/59/o2j2nvxixqa5ADxuHZPMvv9JiyEUxj6W9xzODEZMTrG6w+ZVTqF5v c7Kr67wM0fKm2DHoAlY2tPAceWzhxoY+jprMAUTb1vyqu3Xa+1+UzynWc49ZiRby6zWt 1Cww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=uOc9GqSsqjpd7G0UBQWaIstaITk0dBOlG54g6CU8dgI=; b=CyYaMCxJoFyD/eHIlRXL08fzoRBDNS/q9SfFvepHFpHTD3M41C3Ztk/Nugbta9u/NS gRk2aS14JhqS5kkAQc2Q0+zND61IuMluceD5SyyibcggE2iVWCMjnmg8KH+GRpkfrapS O334ftquKcq/JSgJU0ekiEbwImMiVkylcAzJemsyMwgt8kcP08PuqkQdjytoyLapntRK yLGImFemcRuXxJwmGI0KwuzZqoK9eGMQp6fP9ONV6UlQ72Y0vWSqnhPNBJEsRd6RjaMm c4rMrzoYczWpMnyQzQPDh37Tvd4h0kfTArFf4Pha/fsOM+MvKvSP5brDxHELq3Ld5r6h LZxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w8si1149423pgm.467.2018.11.11.12.08.12; Sun, 11 Nov 2018 12:08:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731587AbeKLF5X (ORCPT + 99 others); Mon, 12 Nov 2018 00:57:23 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:52214 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731143AbeKLF5W (ORCPT ); Mon, 12 Nov 2018 00:57:22 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvt0-0000lG-Nj; Sun, 11 Nov 2018 19:59:10 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsS-0001Ya-G8; Sun, 11 Nov 2018 19:58:36 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Theodore Ts'o" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 145/366] ext4: include the illegal physical block in the bad map ext4_error msg In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Theodore Ts'o commit bdbd6ce01a70f02e9373a584d0ae9538dcf0a121 upstream. Signed-off-by: Theodore Ts'o [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- fs/ext4/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -414,9 +414,9 @@ static int __check_block_validity(struct if (!ext4_data_block_valid(EXT4_SB(inode->i_sb), map->m_pblk, map->m_len)) { ext4_error_inode(inode, func, line, map->m_pblk, - "lblock %lu mapped to illegal pblock " + "lblock %lu mapped to illegal pblock %llu " "(length %d)", (unsigned long) map->m_lblk, - map->m_len); + map->m_pblk, map->m_len); return -EIO; } return 0;