From patchwork Wed Jan 25 06:58:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 48027 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp138977wrn; Tue, 24 Jan 2023 23:12:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0jOCsAaA5HGqwNI29I57lkQOkI1y0wpOYyXlIu/0js1qNVt47SzjZX0g6DbQE/H0IZDIs X-Received: by 2002:a17:907:1257:b0:7bf:3627:df32 with SMTP id wc23-20020a170907125700b007bf3627df32mr25045078ejb.75.1674630762161; Tue, 24 Jan 2023 23:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674630762; cv=none; d=google.com; s=arc-20160816; b=Ovb5xlpR/m1XudEkxNjN9JXDwdwXFR/2l9B22FYkokjvZpjbf2XM714/W5+Kgqxm6N 0oO2TKKs15+t1Fxj3EcP88qv8W97Mumw1yFSeVqqKig4B0TqyqCZ1UbhJgupD9vWJ9LV GIzhv5NffjgKap/pNli+JHL+SikM0j9aoRIKes+aUa/zOHk/5RolTIJENVqXlubGijPL Ywzexzqe5O9lVTzLtL/SeR6UnKGxpjEKEci2rQFFPF518HwQcb6CFwpP+BbGusKDEbt9 p85Jvo+/HbA+SVDQn/rh7AK9eyU5r81MoW8igtb5csxMdjoCIXUZD1PxumwQeIgm6xZo S6HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jiYaBZoZNbB0DyC7ufHGMa8g4Js0DKfbCLQsl0B5ckY=; b=ZpQ38BCCPuTLKZDWZQ1yMSLmhy5gDuzbSEgPqWmyHkLpu7QRr2783a4NbelGySSfrh ixfsR7h6SBgPt8vv22lB5GSTvdBh8UhiMGh0MfJ1mhpZnJ3GorXrjzKjO0WCjhgk5H1Z cwgVUbDKXRIRjIfdyFJbw29+XfTzyGPz45avsTEh/2AeqJA7pP3Ax9Mh2lA6l6jtHOYl h0T0nkJRI9glHvn4eMFNA/TyIWtSO/OLBcxbrotk6qKw3c7M9di7bDjEtEwp7RPsRY4v 9i8K8hSGng+lZliMjWzDjjYO/f1K1p9tTdEqujuQtMs+B8QEGvj3WE8dSJEokQ5dj6kI ZOhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=tTHVgQy5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mf22-20020a1709071a5600b0084d49c26578si4835985ejc.886.2023.01.24.23.12.18; Tue, 24 Jan 2023 23:12:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@infradead.org header.s=bombadil.20210309 header.b=tTHVgQy5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233880AbjAYG6v (ORCPT + 99 others); Wed, 25 Jan 2023 01:58:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234897AbjAYG6s (ORCPT ); Wed, 25 Jan 2023 01:58:48 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A75C47403; Tue, 24 Jan 2023 22:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=jiYaBZoZNbB0DyC7ufHGMa8g4Js0DKfbCLQsl0B5ckY=; b=tTHVgQy5h7NkL2NI+FSrreUyj2 LqeIw+WcwLrIS+N2R+gmKdizI8LYuvgAsucQHW8c0lmeDP+DeQUzl1JT3GTOWOp//iq1LEGNy2DOr PzUbzf5t9TeQBE3GsEWTRQsYhCucQSkCtHCjdnJu/pzZ8V52dsBc0dcR3HAEEvqq1phhHL3H0hjom 4DWX0nIEPKNCuUXABshGaLewr9405yTv6itdIA+dowfqcN0L5Fr6b0Co+L6BjYThbxJh9SjMjM4YZ XSDf0kNYx6uo2Gz/c3kN0TCo2Dz+U34f+iAcR0uMiSCr/F0DZLVx01nXtKT4e8srUv4E/fnbV7QNR HXKMRKzg==; Received: from [2001:4bb8:19a:27af:97a1:70ca:d917:c407] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKZk4-006CeG-RB; Wed, 25 Jan 2023 06:58:45 +0000 From: Christoph Hellwig To: Alexander Viro , Andrew Morton Cc: Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] fs: move sb_init_dio_done_wq out of direct-io.c Date: Wed, 25 Jan 2023 07:58:38 +0100 Message-Id: <20230125065839.191256-2-hch@lst.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230125065839.191256-1-hch@lst.de> References: <20230125065839.191256-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755977625958885203?= X-GMAIL-MSGID: =?utf-8?q?1755977625958885203?= sb_init_dio_done_wq is also used by the iomap code, so move it to super.c in preparation for building direct-io.c conditionally. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by: Eric Biggers --- fs/direct-io.c | 24 ------------------------ fs/internal.h | 4 +--- fs/super.c | 24 ++++++++++++++++++++++++ 3 files changed, 25 insertions(+), 27 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 03d381377ae10a..ab0d7ea89813a6 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -558,30 +558,6 @@ static inline int dio_bio_reap(struct dio *dio, struct dio_submit *sdio) return ret; } -/* - * Create workqueue for deferred direct IO completions. We allocate the - * workqueue when it's first needed. This avoids creating workqueue for - * filesystems that don't need it and also allows us to create the workqueue - * late enough so the we can include s_id in the name of the workqueue. - */ -int sb_init_dio_done_wq(struct super_block *sb) -{ - struct workqueue_struct *old; - struct workqueue_struct *wq = alloc_workqueue("dio/%s", - WQ_MEM_RECLAIM, 0, - sb->s_id); - if (!wq) - return -ENOMEM; - /* - * This has to be atomic as more DIOs can race to create the workqueue - */ - old = cmpxchg(&sb->s_dio_done_wq, NULL, wq); - /* Someone created workqueue before us? Free ours... */ - if (old) - destroy_workqueue(wq); - return 0; -} - static int dio_set_defer_completion(struct dio *dio) { struct super_block *sb = dio->inode->i_sb; diff --git a/fs/internal.h b/fs/internal.h index a803cc3cf716ab..cb0c0749661aae 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -120,6 +120,7 @@ extern bool trylock_super(struct super_block *sb); struct super_block *user_get_super(dev_t, bool excl); void put_super(struct super_block *sb); extern bool mount_capable(struct fs_context *); +int sb_init_dio_done_wq(struct super_block *sb); /* * open.c @@ -187,9 +188,6 @@ extern void mnt_pin_kill(struct mount *m); */ extern const struct dentry_operations ns_dentry_operations; -/* direct-io.c: */ -int sb_init_dio_done_wq(struct super_block *sb); - /* * fs/stat.c: */ diff --git a/fs/super.c b/fs/super.c index 12c08cb20405d5..904adfbacdcf3c 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1764,3 +1764,27 @@ int thaw_super(struct super_block *sb) return thaw_super_locked(sb); } EXPORT_SYMBOL(thaw_super); + +/* + * Create workqueue for deferred direct IO completions. We allocate the + * workqueue when it's first needed. This avoids creating workqueue for + * filesystems that don't need it and also allows us to create the workqueue + * late enough so the we can include s_id in the name of the workqueue. + */ +int sb_init_dio_done_wq(struct super_block *sb) +{ + struct workqueue_struct *old; + struct workqueue_struct *wq = alloc_workqueue("dio/%s", + WQ_MEM_RECLAIM, 0, + sb->s_id); + if (!wq) + return -ENOMEM; + /* + * This has to be atomic as more DIOs can race to create the workqueue + */ + old = cmpxchg(&sb->s_dio_done_wq, NULL, wq); + /* Someone created workqueue before us? Free ours... */ + if (old) + destroy_workqueue(wq); + return 0; +} From patchwork Wed Jan 25 06:58:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 48026 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp136876wrn; Tue, 24 Jan 2023 23:05:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfRmNJSi3EZEOlYHeIGQCmpXPCpp0I5yfQQWixh0QaQWY2liGEABNL0f/s24rP+xB212Ag X-Received: by 2002:a17:906:5d1:b0:861:7a02:1046 with SMTP id t17-20020a17090605d100b008617a021046mr30200748ejt.37.1674630357269; Tue, 24 Jan 2023 23:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674630357; cv=none; d=google.com; s=arc-20160816; b=ZCjPLXwiA9w1rHWqKEv8gJqxIpJBcT2M7plyT8dIfejRjORgTk1EeB56WCIoLX+Nt2 Ms5z/dRs1QPK6GV9XU1G14835G4bOdsRHt59+drNh52Xza6giR5CN3xdI5/+RntBa27N kdmxCNJZtFeHMeFulHrio4mKMHgvQxSn4dr1nhiUAqMBOEurXtlStqY2HcJD35eRuOYT H7jX1vm3dv4cHoO61+FwlMx/1Zr+FYx1hJlEAuW4avl0+/RgO7APuggjLVVA6f8jQxlA SKINmy35fg55GPzv+iaO6wstxa77uhGlVSLp3d+PiD3EgqS676s0I7OEp9mtvRjlHiH4 g0BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/caBiVGll/6SnclWcFCO9ngnR7ZU07wxLwdfypB6UYE=; b=jnOQA5Wyne1j6WnBCjbW9FyPZktJXuTw1qLC9yZ6T5eH/aOcgDaI13KBkFV+nyzucp yshyDnRCcvfh2I3baxpI/3uQzUNH2NQi/44rWDGa5imR98iAyGTFek7ZQw4+ZwnWl5S6 fbMRSMvqV056/LVTA8EaOLUnM9GfldN9cCwR7qinwtKWOgUehrouM+DJgKma0dvri/tr GR9o/7y66MlqfIZB/s/KhtgrBBQG6alMVa8BaO6M1XEF51Ff0UXTTG10YL9tZHoumblM 4TssN5Ar5qN57HRx13lVVLm721KwyPoSjDKX4N8xZ6DJ8/b3V+XPUE8W/szGgEj/bUyk oAuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=3SBEaEiZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id et24-20020a170907295800b0084ccee74c20si4339021ejc.497.2023.01.24.23.05.31; Tue, 24 Jan 2023 23:05:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@infradead.org header.s=bombadil.20210309 header.b=3SBEaEiZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234941AbjAYG6y (ORCPT + 99 others); Wed, 25 Jan 2023 01:58:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234920AbjAYG6v (ORCPT ); Wed, 25 Jan 2023 01:58:51 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06D8B47403; Tue, 24 Jan 2023 22:58:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=/caBiVGll/6SnclWcFCO9ngnR7ZU07wxLwdfypB6UYE=; b=3SBEaEiZiPSenf6OZy25Ma0Wzh 3tYKbH1NuA5bzhunjqOm2SDz21mMlmDlp14sM/OvsHW54cPQ8g8rZ61UvSUbyvItEPs4lDjM51I6M c9aEBVEyfk7HYpJHScrtBJOXYOtf6A+zvzUvjDzAb3125K6Js8XYb/CU2ElRmvfzdZRdkL35ADmun nLQkxjGe952tVNkObt329+FY1dHAsRMnQ95EgAyQxGtP9rhL3VbHogSB4SaiO67qjJRtxuA0EITsb ElUILxlxBVE0sPLt1fsCHeKBcEyd7E5T+OFZrIlezKQ+itggKuJrwrja3v5uvYRD3bBVC7zt2uw5t QmLyBDsg==; Received: from [2001:4bb8:19a:27af:97a1:70ca:d917:c407] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKZk7-006CeX-JQ; Wed, 25 Jan 2023 06:58:48 +0000 From: Christoph Hellwig To: Alexander Viro , Andrew Morton Cc: Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] fs: build the legacy direct I/O code conditionally Date: Wed, 25 Jan 2023 07:58:39 +0100 Message-Id: <20230125065839.191256-3-hch@lst.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230125065839.191256-1-hch@lst.de> References: <20230125065839.191256-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755977201652670403?= X-GMAIL-MSGID: =?utf-8?q?1755977201652670403?= Add a new LEGACY_DIRECT_IO config symbol that is only selected by the file systems that still use the legacy blockdev_direct_IO code, so that kernels without support for those file systems don't need to build the code. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by: Eric Biggers Reviewed-by: Christoph Hellwig --- fs/Kconfig | 4 ++++ fs/Makefile | 3 ++- fs/affs/Kconfig | 1 + fs/exfat/Kconfig | 1 + fs/ext2/Kconfig | 1 + fs/fat/Kconfig | 1 + fs/hfs/Kconfig | 1 + fs/hfsplus/Kconfig | 1 + fs/jfs/Kconfig | 1 + fs/nilfs2/Kconfig | 1 + fs/ntfs3/Kconfig | 1 + fs/ocfs2/Kconfig | 1 + fs/reiserfs/Kconfig | 1 + fs/udf/Kconfig | 1 + 14 files changed, 18 insertions(+), 1 deletion(-) diff --git a/fs/Kconfig b/fs/Kconfig index 2685a4d0d35318..e99830c650336a 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -18,6 +18,10 @@ config VALIDATE_FS_PARSER config FS_IOMAP bool +# old blockdev_direct_IO implementation. Use iomap for new code instead +config LEGACY_DIRECT_IO + bool + if BLOCK source "fs/ext2/Kconfig" diff --git a/fs/Makefile b/fs/Makefile index 4dea17840761a0..606c029e1c9bc3 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -19,13 +19,14 @@ obj-y := open.o read_write.o file_table.o super.o \ kernel_read_file.o remap_range.o ifeq ($(CONFIG_BLOCK),y) -obj-y += buffer.o direct-io.o mpage.o +obj-y += buffer.o mpage.o else obj-y += no-block.o endif obj-$(CONFIG_PROC_FS) += proc_namespace.o +obj-$(CONFIG_LEGACY_DIRECT_IO) += direct-io.o obj-y += notify/ obj-$(CONFIG_EPOLL) += eventpoll.o obj-y += anon_inodes.o diff --git a/fs/affs/Kconfig b/fs/affs/Kconfig index eb9d0ab850cb1d..962b86374e1c15 100644 --- a/fs/affs/Kconfig +++ b/fs/affs/Kconfig @@ -2,6 +2,7 @@ config AFFS_FS tristate "Amiga FFS file system support" depends on BLOCK + select LEGACY_DIRECT_IO help The Fast File System (FFS) is the common file system used on hard disks by Amiga(tm) systems since AmigaOS Version 1.3 (34.20). Say Y diff --git a/fs/exfat/Kconfig b/fs/exfat/Kconfig index 5a65071b5ecf10..147edeb044691d 100644 --- a/fs/exfat/Kconfig +++ b/fs/exfat/Kconfig @@ -3,6 +3,7 @@ config EXFAT_FS tristate "exFAT filesystem support" select NLS + select LEGACY_DIRECT_IO help This allows you to mount devices formatted with the exFAT file system. exFAT is typically used on SD-Cards or USB sticks. diff --git a/fs/ext2/Kconfig b/fs/ext2/Kconfig index 1248ff4ef56254..77393fda99af09 100644 --- a/fs/ext2/Kconfig +++ b/fs/ext2/Kconfig @@ -2,6 +2,7 @@ config EXT2_FS tristate "Second extended fs support" select FS_IOMAP + select LEGACY_DIRECT_IO help Ext2 is a standard Linux file system for hard disks. diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig index 238cc55f84c429..afe83b4e717280 100644 --- a/fs/fat/Kconfig +++ b/fs/fat/Kconfig @@ -2,6 +2,7 @@ config FAT_FS tristate select NLS + select LEGACY_DIRECT_IO help If you want to use one of the FAT-based file systems (the MS-DOS and VFAT (Windows 95) file systems), then you must say Y or M here diff --git a/fs/hfs/Kconfig b/fs/hfs/Kconfig index 129926b5142d8f..d985066006d588 100644 --- a/fs/hfs/Kconfig +++ b/fs/hfs/Kconfig @@ -3,6 +3,7 @@ config HFS_FS tristate "Apple Macintosh file system support" depends on BLOCK select NLS + select LEGACY_DIRECT_IO help If you say Y here, you will be able to mount Macintosh-formatted floppy disks and hard drive partitions with full read-write access. diff --git a/fs/hfsplus/Kconfig b/fs/hfsplus/Kconfig index 7d4229aecec05b..8034e7827a690b 100644 --- a/fs/hfsplus/Kconfig +++ b/fs/hfsplus/Kconfig @@ -4,6 +4,7 @@ config HFSPLUS_FS depends on BLOCK select NLS select NLS_UTF8 + select LEGACY_DIRECT_IO help If you say Y here, you will be able to mount extended format Macintosh-formatted hard drive partitions with full read-write access. diff --git a/fs/jfs/Kconfig b/fs/jfs/Kconfig index 05cb0e8e4382ee..51e856f0e4b8d6 100644 --- a/fs/jfs/Kconfig +++ b/fs/jfs/Kconfig @@ -3,6 +3,7 @@ config JFS_FS tristate "JFS filesystem support" select NLS select CRC32 + select LEGACY_DIRECT_IO help This is a port of IBM's Journaled Filesystem . More information is available in the file . diff --git a/fs/nilfs2/Kconfig b/fs/nilfs2/Kconfig index 254d102e79c99b..7d59567465e121 100644 --- a/fs/nilfs2/Kconfig +++ b/fs/nilfs2/Kconfig @@ -2,6 +2,7 @@ config NILFS2_FS tristate "NILFS2 file system support" select CRC32 + select LEGACY_DIRECT_IO help NILFS2 is a log-structured file system (LFS) supporting continuous snapshotting. In addition to versioning capability of the entire diff --git a/fs/ntfs3/Kconfig b/fs/ntfs3/Kconfig index 6e4cbc48ab8e43..96cc236f7f7bd3 100644 --- a/fs/ntfs3/Kconfig +++ b/fs/ntfs3/Kconfig @@ -2,6 +2,7 @@ config NTFS3_FS tristate "NTFS Read-Write file system support" select NLS + select LEGACY_DIRECT_IO help Windows OS native file system (NTFS) support up to NTFS version 3.1. diff --git a/fs/ocfs2/Kconfig b/fs/ocfs2/Kconfig index 5d11380d872417..304d12186ccd38 100644 --- a/fs/ocfs2/Kconfig +++ b/fs/ocfs2/Kconfig @@ -7,6 +7,7 @@ config OCFS2_FS select QUOTA select QUOTA_TREE select FS_POSIX_ACL + select LEGACY_DIRECT_IO help OCFS2 is a general purpose extent based shared disk cluster file system with many similarities to ext3. It supports 64 bit inode diff --git a/fs/reiserfs/Kconfig b/fs/reiserfs/Kconfig index 33c8b0dd07a2e7..4d22ecfe0fab65 100644 --- a/fs/reiserfs/Kconfig +++ b/fs/reiserfs/Kconfig @@ -2,6 +2,7 @@ config REISERFS_FS tristate "Reiserfs support (deprecated)" select CRC32 + select LEGACY_DIRECT_IO help Reiserfs is deprecated and scheduled to be removed from the kernel in 2025. If you are still using it, please migrate to another diff --git a/fs/udf/Kconfig b/fs/udf/Kconfig index 26e1a49f3ba795..82e8bfa2dfd989 100644 --- a/fs/udf/Kconfig +++ b/fs/udf/Kconfig @@ -3,6 +3,7 @@ config UDF_FS tristate "UDF file system support" select CRC_ITU_T select NLS + select LEGACY_DIRECT_IO help This is a file system used on some CD-ROMs and DVDs. Since the file system is supported by multiple operating systems and is more