Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1174364pxb; Sat, 16 Oct 2021 03:40:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzph5UEhrKd5Y2ra4JS/ZS0VPFI8Kh8muswUleiVazjfN9q0EIg7KgTBkUssiGjopu0hVqN X-Received: by 2002:a62:7904:0:b0:44c:ca08:1956 with SMTP id u4-20020a627904000000b0044cca081956mr16975831pfc.47.1634380806690; Sat, 16 Oct 2021 03:40:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634380806; cv=pass; d=google.com; s=arc-20160816; b=OsrxO3GFVin80l6pTcH4/ZhQEh80/hk+xQ5XUbROBUaIod6tmQBbunwRGTZXZvvdfg U4yxv2jcFNVmqLjXRwk2eUQNfyeS0nap3ZwiN3UfNOzu8jtNb589DmS7J048aANH6gz4 zvoPhgB1ek5MwK0F7ahxYKYbq0TQakNrrx7UrFYvsrCzG6UcBbCRRxokpZ/wutvizeCr rpEYfkPGrIGA39IY94GeOMK/JrsiVOH4tmcYfJ7axG/+jrHiYcWsvzdvBookiqOfWsJO +WiV3hFkf2x8lCf3jkF3GUFlymJwtIuX2YmgnsvxZCZfr6VD1r3vOMObBxiI2IE2hu5X 4T9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=dd79Ru+92+tvwwdfde/giyArZGTbUGkHFZZOlpDPINg=; b=eB6A/PRVEN8pP5OrRiNxGF9lVYP/pW0JYFgigciAMQzDmXkEjRv6Q2PbCZReTBzlgT d6hhAic4Wwb6rgRcsFYV8EbUz8IGDKF4VRJrvLk6ZwjpnL7lRan5KAAHSFIp1PVZx0Q6 2F5RRK5rCbuJzrnSsD0V/E2S7c59eCrCPWv9KJEkscV6+qwbwmsipop8lBhRIIA6fM4V kVjhzdni7CzuMKq1pRbbRGbYzRfHwf48FAFNeeMZtxsj0pMlEk871pkAQ2ud27p4CjJC 4LXInpgOLUlLrRZzbgCz9UouHkxkJgHVt50URv9LLK8nG6WWavl0CP17bTSexfSR9dj5 G9wA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Nb9oCbiH; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=d6md9LI2; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si15559953pfj.271.2021.10.16.03.39.44; Sat, 16 Oct 2021 03:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Nb9oCbiH; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=d6md9LI2; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237359AbhJOOUk (ORCPT + 99 others); Fri, 15 Oct 2021 10:20:40 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:1502 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237294AbhJOOUj (ORCPT ); Fri, 15 Oct 2021 10:20:39 -0400 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19FE6x2F007382; Fri, 15 Oct 2021 14:17:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=dd79Ru+92+tvwwdfde/giyArZGTbUGkHFZZOlpDPINg=; b=Nb9oCbiHqcNu4X0+Mm+5TnAMYUBDw7kBhpRANsDsnCrivtIo5ainQVFfk3opJwek/Dsp s1FTnGzRCXQ3xo1aQpTfgmAedT0vCNriREocxzx/eJyGZrVkyMOm3vQWv9flsUUWJxgo 0Zfoop+PJPJeD9R0m2BBRlMhulbk47da3a57+UGyRcsmzMBTvwCWUAfDv0VQ+Tqqk8cK /gYHGldmQC1r0L+ONi7vW8KA+kt9D4p5EOmtCDTbDdKg72VOuw4OMec0F2uabUbON89I KqisYO+x5SXcrL5UtPeo4xE52dA3D6S+PYvpyQA4gKVLsLPZ+5w7wpMxYIgXI16n4Kin hg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3bpfsys7j8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Oct 2021 14:17:45 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 19FEFN7u085970; Fri, 15 Oct 2021 14:17:04 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2174.outbound.protection.outlook.com [104.47.59.174]) by userp3020.oracle.com with ESMTP id 3bkyvfsxtj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Oct 2021 14:17:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VeVVPDd/WO4H3aKGzVkcGwxPnOdsavAIUQCUTpo4JoY+/yKyBFTIuTLE3UH59be8Bnlj8O3eqtL3ZkWdqlaqPrL/4pM2M5QSW+EvNOAMF+3tzu2KYv48O7JEhjNDDvFq4Bj5w3SLrDnea+RduoCw262yrIG9b79CsMjENj98ZJLIzmcNwP4IiaP2zuA3saiOonG255FDJARJ8ht5HqG33UwkIZiheZmw2CfkX2WcdciyAeEAZFDsHPee5GKU9CdlYUygXziYPEKJLiZD+Aud0TIJzwRBoC1tR2jksXCoXanYc2bWTo5DOUBR09VraLYBvb5KAV0mTGI39GTOxoDZaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dd79Ru+92+tvwwdfde/giyArZGTbUGkHFZZOlpDPINg=; b=I4nJkS13rLA2HiBxA3LUfhnvpO/iQvkmUJtkQ1orEBisTj9kGhx1Tgkp0fGiDzwBwyK1J3f2D+paxAt876iDqpQGrDqOPe5hGvW4RTPQAF4OZyaJ5VS7VVQKxfHjhKQ1cefdLvCHw03XD6jlfx1vLW8sws7TjjdUiRRlNACY6lTtQhxPUpkI1jf76/Iy/KESAHUvTjyDHbO6JNu5JxYqN0eO5vxhclSl077/EJ7uqDCBxV7cReFBnB2VNBr50LSSL6uM+N2LZCd8ZXccOGp/HZQu2unJoZVIwe+hgpYyJKFf6ZCRVJDzIWY8VLl50d/J83ioP/Oc0zBBc264mA6KDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dd79Ru+92+tvwwdfde/giyArZGTbUGkHFZZOlpDPINg=; b=d6md9LI2Up2AzO5ehqmcnD4Ruah/2S2iYGWAyYCBky31g5GPR9WvBvdmKIS32ed2wNBkRkvwAvUkxodv+2b6Zey5rnDOJ8FgO6gOKBcdUM4yhDwOHp0pbtLDPOPDwsSt/r8klV9qIlQ1SWCRym3cEJrueh9VYWjerTMC6DjCKxE= Authentication-Results: lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=none action=none header.from=oracle.com; Received: from SA2PR10MB4665.namprd10.prod.outlook.com (2603:10b6:806:fb::17) by SA1PR10MB5688.namprd10.prod.outlook.com (2603:10b6:806:23e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.26; Fri, 15 Oct 2021 14:17:01 +0000 Received: from SA2PR10MB4665.namprd10.prod.outlook.com ([fe80::c12a:cfad:520a:2c94]) by SA2PR10MB4665.namprd10.prod.outlook.com ([fe80::c12a:cfad:520a:2c94%4]) with mapi id 15.20.4608.017; Fri, 15 Oct 2021 14:17:01 +0000 Message-ID: <2056d9b3-cf07-36fc-ad60-381e4a4e6d7b@oracle.com> Date: Fri, 15 Oct 2021 09:16:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 27/30] jfs: use sb_bdev_nr_blocks Content-Language: en-US To: Christoph Hellwig , Jens Axboe Cc: Coly Li , Mike Snitzer , Song Liu , David Sterba , Josef Bacik , Theodore Ts'o , OGAWA Hirofumi , Dave Kleikamp , Ryusuke Konishi , Anton Altaparmakov , Konstantin Komarov , Kees Cook , Phillip Lougher , Jan Kara , linux-block@vger.kernel.org, dm-devel@redhat.com, drbd-dev@lists.linbit.com, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ntfs3@lists.linux.dev, reiserfs-devel@vger.kernel.org References: <20211015132643.1621913-1-hch@lst.de> <20211015132643.1621913-28-hch@lst.de> From: Dave Kleikamp In-Reply-To: <20211015132643.1621913-28-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA9PR13CA0057.namprd13.prod.outlook.com (2603:10b6:806:22::32) To SA2PR10MB4665.namprd10.prod.outlook.com (2603:10b6:806:fb::17) MIME-Version: 1.0 Received: from [192.168.0.162] (68.201.65.98) by SA9PR13CA0057.namprd13.prod.outlook.com (2603:10b6:806:22::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.10 via Frontend Transport; Fri, 15 Oct 2021 14:16:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a68a63bc-24cc-410f-8bc4-08d98fe6746d X-MS-TrafficTypeDiagnostic: SA1PR10MB5688: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:103; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bBokgl1OMZ93e4ybYzEg6jhEI5P7f8cPlN+bATmNuarlbwAw4+KQNMIC+jqSI7+70yPc2hu1XASftYIAzp5kaEC2s92WjCRB0dEYDW2Zffn/jLvuK5TPyHQjEaJdvj7a6LJMQVpPk/QRtHtjLOKxwuvXavs+tp7pSocYXdh6Lc0tBndyqARfMhIDMq8+QPsemopkf/PU6JfEEe0tRYYEPm6P96TSEsQkGYHN0SFkDhoz/kg7oEFVA+Ab4IE8/593oX5REcBwkZqO091yFbEWhjHUKhiKA+06AWLdaE+XuClLCCi7ZJkzBccOlkbpPoXY5YEetetfjjRDtVSLJfoJ3ivKm9IZR8wEVTexj0lPM3TeLgEm7s0nO3PuViQR4hNxMuYccGoTKyH9Al9OcN8QAiZQ+7Y21Lne0U4W8NUzUwa+B40JcgU4yXC0q+zE9b3dssRcq/2WYcbgtGYWnF/yRwtMmsQH3pJoWeRS5oY+dfV/AJJs9zY6Hcx6WuDfwaJuAyDAjktAmnGgoZ4le6Kzs4gzCgMBOf6b+GG1wkZmCqXOspuVUj3RYC0pl/ho4N67QJYR+zN7iAxplK9WUpjOHSLOvRnWub0wsnDHMJ1t/Yqse53n+zvAzikyxrfXoTcNlnRNyGXzHJvpeu2VN3OBxWCZORJtSJtQG1KcLsL6EYRmwiSHjLR7J18jq1i3ljtZh4Zbe/SQrUgquUkvptu3xtICpi7CabkoAV4/U9NPw/s= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA2PR10MB4665.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(66946007)(38100700002)(31696002)(44832011)(2906002)(36756003)(2616005)(16576012)(6486002)(66556008)(8936002)(66476007)(31686004)(8676002)(7416002)(5660300002)(956004)(110136005)(7406005)(26005)(316002)(54906003)(83380400001)(186003)(4326008)(508600001)(86362001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S2luS1NLaytZdTN5aEkzY0lyWitTM0ZQeE5HcEpIaytsbDJKczI0ajJrQjJV?= =?utf-8?B?ZG9wbThCQmxSekZ2VGZXNXY0bmdNSlB0M3BBUS9KSFE0bnZZamF2bjBsTzhx?= =?utf-8?B?RmkxQWxLRGluOVI0WDR4djF0RDZFWnpGTFpibTlkYUNxRHBuQXJiV093R0du?= =?utf-8?B?U0xrM1Vna3pSeS9lamt4Y0cyT2h5b3VUK1B0eEsxT2FIeUxDU3pLSFYvOEx4?= =?utf-8?B?QzhlZ010cDN4SHFzWlE0a1h1UXJMeGRmNUZFQllvSkcwbEIvMmQyeUtpNzJu?= =?utf-8?B?N1RLb0t6V3Rod2ovdHBPTEFlWGRlYUl1ZkJQTDRKeEVBRUdJMUFLSWxuUmFX?= =?utf-8?B?U21pMXhTTEpOV0JraTlBZ29PMnFBdDlNcjgzYjAvOUNkRE00emRGVVVLQnZ0?= =?utf-8?B?QXVaR0VPV2JTZnE1MGhyYjkyL1FGSlNqdklsTm5HeTd6L3hKV2RCaVhpL1RY?= =?utf-8?B?OWJGZDk2NDVTdlVmQ0lUVjcxdDg1WFFENGVZSElQdS9NWGFKVlZKbXJWMHkr?= =?utf-8?B?Q3g3V1NDalFySlhqc3FpeHUxME9qcHFzRmdpemFranRCUWQrbnNPa05PNlpQ?= =?utf-8?B?TDZnV2lVSFhRKzc0ZWxZNkNxcUpPSlNhaEZ1Wkt4YTFUM21uNWVJVmZLSnpw?= =?utf-8?B?b0UrY2tLQzMycloxTUxkM0ZRRmxuMGMyMHpHRVpjQjFSYkFaanpuQjJWOVFV?= =?utf-8?B?VHUyYmdzSjBYT1J5VC9TZHpIeENvSW9iNnAxaWg5STVUQWYyUGFtRng1aSts?= =?utf-8?B?VzFzSE1JdDQ0NWpMalBibkxlcGVlZ0prOGVRaWVnRlB0MkxsblVtZGdOQkhB?= =?utf-8?B?S1podU1OVUxqSUhPN3B1YjBOUlJWSTExSmdHUFpFOWRsR0NCeHRwd3FmK1Vh?= =?utf-8?B?RHhMSi9wam92emxzTWhxaGZoL0tyREJwZkF0ZnJTcjJlSlQ3S3RBQ24vRlpj?= =?utf-8?B?SEJHRVV5NXhMVVRoTzl0TzNmWUd4UHp5ZkExdkw1NzF0RmFLV2tVS3ppMGIr?= =?utf-8?B?eC9BYjhTZkI1UGR1dXRiYXYzVldqZzc4RVBybjFCdG4yVTMzVEtoaTFrQ0Rn?= =?utf-8?B?aEc2MVRMNmZKdFB4YXB5TmFpenBTWjVvYXBSWHkvbUY5NG5mNzRvelRySXpP?= =?utf-8?B?R3IwaWVENkFvL0RJaHF1dTNnSnNKemZmVGs4MHZSTWFnd3RjMXFXT1RINU84?= =?utf-8?B?c0lGUjdjYTBGTjRncnAyYUhhdXdjSk9nQUpDZTUzbEEvSHNPK3U2US92emJz?= =?utf-8?B?Unc3R2Q1Z0lCMUZadUFjTkNKRzNvRVBmSHF0TzByK1hzK1pvTW9OSVhtNzVJ?= =?utf-8?B?RmtCTDIvcldEZUxRVzdua3VzaGI4dWZwRkVqcTBlNGJsN0RTZGUrUjI5L3NE?= =?utf-8?B?K1dHL01NK3FCanFhUjJ2WXNIVk91Sk8vZ1dXdDNlK2owUGNWdDkyV0VRc0hR?= =?utf-8?B?VlQ0UkFqb3FzWjlCbWRpYXJ6WVNoRGFYTXFZL2JSaXRxTU56UzJ0N0RuVDBD?= =?utf-8?B?YWJaK1B5MjFwcDZ4NTY2bzZvT0ViVnVUVXNKY0txUUlob3RtMVJvcmErMy9l?= =?utf-8?B?aTlSVzNiMkVEVXprSmU1a3d2WmFZZm9reXh0Ym1BRE5mcTdnc1pMeS9hVCtm?= =?utf-8?B?Z0RtbzJBRlFvQTVEc2VqYTBLVkNOcENhZktNMm8xT09CVVc3R1ZENUgvY3h4?= =?utf-8?B?U0NFbVJGNWtWeHR3bU02alFZcFVkLzBNZzFjL1BieXY5YXJWV2NydTRnNXBF?= =?utf-8?Q?SL9q4IASgEJXnPU/oEClDG2+Wt1oTSdnu2zyD0G?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a68a63bc-24cc-410f-8bc4-08d98fe6746d X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4665.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2021 14:17:01.1497 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YCIK4X547/RT0fkwgewmVs2SS5HUYyhv/NqprpcA+dyb/QSB58dJwqI9yNN9oBbVZmFNRsl1275KtJxNIdbGLxe/cN/b9mwFUw69fl4/n1s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB5688 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10137 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 adultscore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110150088 X-Proofpoint-ORIG-GUID: yYGcjkkCYRt6EPBT5USWKbM7HCwwUtZM X-Proofpoint-GUID: yYGcjkkCYRt6EPBT5USWKbM7HCwwUtZM Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 10/15/21 8:26AM, Christoph Hellwig wrote: > Use the sb_bdev_nr_blocks helper instead of open coding it. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Kees Cook Acked-by: Dave Kleikamp > --- > fs/jfs/resize.c | 3 +-- > fs/jfs/super.c | 3 +-- > 2 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/fs/jfs/resize.c b/fs/jfs/resize.c > index a42dbb0d3d28a..8b9a72ae5efa7 100644 > --- a/fs/jfs/resize.c > +++ b/fs/jfs/resize.c > @@ -86,8 +86,7 @@ int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize) > goto out; > } > > - VolumeSize = i_size_read(sb->s_bdev->bd_inode) >> sb->s_blocksize_bits; > - > + VolumeSize = sb_bdev_nr_blocks(sb); > if (VolumeSize) { > if (newLVSize > VolumeSize) { > printk(KERN_WARNING "jfs_extendfs: invalid size\n"); > diff --git a/fs/jfs/super.c b/fs/jfs/super.c > index 9241caa161163..24cbc9946e01c 100644 > --- a/fs/jfs/super.c > +++ b/fs/jfs/super.c > @@ -284,8 +284,7 @@ static int parse_options(char *options, struct super_block *sb, s64 *newLVSize, > } > case Opt_resize_nosize: > { > - *newLVSize = i_size_read(sb->s_bdev->bd_inode) >> > - sb->s_blocksize_bits; > + *newLVSize = sb_bdev_nr_blocks(sb); > if (*newLVSize == 0) > pr_err("JFS: Cannot determine volume size\n"); > break; >