Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7204606ybp; Wed, 16 Oct 2019 05:27:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7bDzVwKQqGM2aTlK63h4UODYKYjF4SNO5a9nQ0rHJvW8ALs8EzbTRwzS0bBT2TKo61n9x X-Received: by 2002:a17:906:309b:: with SMTP id 27mr39160618ejv.243.1571228834262; Wed, 16 Oct 2019 05:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571228834; cv=none; d=google.com; s=arc-20160816; b=NYmn1+giicTc4bOD7u/+3OecJdIFUWW8zYjirUS5TYFGDbdoJdCI1dDuif6hEQy8TF +uU96Hy976/leYdwfz5Nn9M2XFgQ6A8Kbdq8EaLEnfGQAV0br+uMDI37g0UKea7uk/r2 ujs8kj/gI3tRzcd5HE2zvqvf0qf8wY0kAeEA9s29y1UIbTfuZ4nOg7XoQNiT3I1bwuwh 1ZNZE4jD6ZFBwsWbcfj7ga7lUqjo1cUVeoTaDPEIzHKT/w0YSBiP27Td8aEsnTsFcZwk 2PtJ1oibTg9lqeu/fiNLkuyIAf80lsBA2s55cFyIxIszLeVEJlUr1AePhNQi/avVjQh9 InTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from; bh=cIkvnjRrLsQZQ/TIyMMr1zO8bABS54/9y2oRyViEhGY=; b=W10KSouoiaxaQaexCZ2gMAEbrGol0wjKmIvkKkDbw0D7dgy0MSWQL9QJMjQUT66A2d 0iJwK+667U7YU6FN5nOpLN2Vk1ezXfd9hUFikkmk1DE8czfNx3BJMUdZFnYaQpkPYjVc sbeujbP5mttX2TJmod4VPkzQXd1Q5G2I4WK4qv9qz9LL+Cd1JSGuJHJkQIXbVHpk9/2h PcCKjYxp6Z2SeKTkhnKrKpFB9PqlYDLnI5LUr3LaBnrf/8HIm4Y34ZoyviD179I/xQrX S5JVpLN9QRapoLuIJAVfQGR8U7frEaj5JR5bdNMQYZaeEGh0yG+9Pk34Hr/2vQ55pNdY DW5Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si18456940ede.126.2019.10.16.05.26.50; Wed, 16 Oct 2019 05:27:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387534AbfJPHhg (ORCPT + 99 others); Wed, 16 Oct 2019 03:37:36 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53414 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387517AbfJPHhg (ORCPT ); Wed, 16 Oct 2019 03:37:36 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9G7b2tn005462 for ; Wed, 16 Oct 2019 03:37:35 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vnx2tt1w3-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Oct 2019 03:37:35 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 16 Oct 2019 08:37:33 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 16 Oct 2019 08:37:30 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9G7bTdw11403350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Oct 2019 07:37:29 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 180B0AE058; Wed, 16 Oct 2019 07:37:29 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 664DAAE045; Wed, 16 Oct 2019 07:37:26 +0000 (GMT) Received: from dhcp-9-199-158-105.in.ibm.com (unknown [9.199.158.105]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 16 Oct 2019 07:37:25 +0000 (GMT) From: Ritesh Harjani To: tytso@mit.edu, jack@suse.cz, linux-ext4@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, mbobrowski@mbobrowski.org, riteshh@linux.ibm.com Subject: [RFC 5/5] ext4: Enable blocksize < pagesize for dioread_nolock Date: Wed, 16 Oct 2019 13:07:11 +0530 X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016073711.4141-1-riteshh@linux.ibm.com> References: <20191016073711.4141-1-riteshh@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19101607-0020-0000-0000-000003797C3F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19101607-0021-0000-0000-000021CF9E44 Message-Id: <20191016073711.4141-6-riteshh@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-16_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=550 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910160071 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org All support is now added for blocksize < pagesize for dioread_nolock. This patch removes those checks which disables dioread_nolock feature for blocksize != pagesize. Signed-off-by: Ritesh Harjani --- fs/ext4/super.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index dd654e53ba3d..7796e2ffc294 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2105,16 +2105,6 @@ static int parse_options(char *options, struct super_block *sb, } } #endif - if (test_opt(sb, DIOREAD_NOLOCK)) { - int blocksize = - BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); - - if (blocksize < PAGE_SIZE) { - ext4_msg(sb, KERN_ERR, "can't mount with " - "dioread_nolock if block size != PAGE_SIZE"); - return 0; - } - } return 1; } -- 2.21.0