Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1626772rdb; Mon, 2 Oct 2023 16:09:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEi/4QWZEHdwPMIp3GslSFoil/FY9ZU/Q6NPk4qHdYItSnedrbcn4yBf9cbUCQJLW9XGKZz X-Received: by 2002:a05:6a20:6a1a:b0:147:fd40:2482 with SMTP id p26-20020a056a206a1a00b00147fd402482mr12752866pzk.44.1696288194992; Mon, 02 Oct 2023 16:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696288194; cv=none; d=google.com; s=arc-20160816; b=Mo1h/uD1g8J7yQsxAk0q1MPs3gGXdiubPYuU6Y5FSfsa8GlmguJqCjbJ6J5Hp/zmkS 8ZUJ8ZEqI183nlUoc6qtJ0riPCChJ4rkrzsyb8gBN9AiE6dMTNErS9wVcBtxroQQNtAD 8z54d3qpWZbHfRp2rekS4Mos6YOBaaMgZ+1zb8DGxoAxIsUtKegiRORPAX1pjntAXEnq it7k/sMuVTxcNQ4t4SAfpgGY1K6Vts3yThUAxDRCkv6MYzUi2zm8blmJVIa3oigJ7OT5 eXcoP/Ob42NlpwsqUC27AbsBU+HA5JJcPDBi8k5FlHgtqPBPsIAFKL3aajWKcQpJoihQ In4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=h+VrPtOekhb8+q73onDrKN45JQ6nX1n1Q4LL4kdfewA=; fh=WThDv+U5sQPcIIVwL6wTSn8ugZC/BycOsDXQeMeQBVo=; b=F8pKefZ9vEcDyAmBJUAhEFYpL39gStffUZx5eglQG/TMMsq7t+GPMChP2KJKTa0DV2 lLS6Pm8gzdlqGaXdrd/8HmYcXEY0vsRQvE/Nk6enNoABb5jpLUunTL/NRB7ETziR5GV5 6k2IfxOHok/yylpOGw8Nxh3GNgDwUIlH8gUZ2T5HqkNTNUk1C/7QOnX01eBEPTzxJIZj t4NBk5mEBGn0jMZ5oRxSo7c9tNkiaUqnnhgQkav5TcIciLYB4OjnNTNC/jF8+azfAAy4 mHD6SmQ2r6LGsM6km98+hed34VBmUxe+8aeNRgQptmzT0+XcQucjsCo6BooKk6ey5Zyy Xl3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hRSehPpj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z14-20020a1709027e8e00b001c5fb45613dsi22345536pla.318.2023.10.02.16.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 16:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hRSehPpj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 27C2F801B6F1; Mon, 2 Oct 2023 16:09:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237155AbjJBXJn (ORCPT + 99 others); Mon, 2 Oct 2023 19:09:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjJBXJm (ORCPT ); Mon, 2 Oct 2023 19:09:42 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 118AAAB for ; Mon, 2 Oct 2023 16:09:40 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d81486a0382so497906276.0 for ; Mon, 02 Oct 2023 16:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696288179; x=1696892979; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=h+VrPtOekhb8+q73onDrKN45JQ6nX1n1Q4LL4kdfewA=; b=hRSehPpjqhUSg6MV5R6FS+cS6YVmzumQXNNzH7UIghZ0vI+KeLotbkC7dgObCX6CBD r9lRmNSRQ+TSIQqIL9YAzHZ+F69FYqavNv6Jih6j5HCxTGYW6++bs9ohglRRYe1QR+xN 94b6od9RNMZKMzdkWv18EVrSyW/5kjCcFwPh+PlPXGuzz2gmXekrwlDNzXctujws3HLN sS2n2W+rB+TEKwLvlLy1jlzJTChHEAajZXVV2u0AjUtLz4IBi2atztmVyPfdIJIBH6WP n9QVV4osNRS2dO6cossOjl/91VTapNmvDLrWpNFsZ5g3D/TFZlLruAkvaxvHzghtxnSU 1aLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696288179; x=1696892979; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=h+VrPtOekhb8+q73onDrKN45JQ6nX1n1Q4LL4kdfewA=; b=hWRHcZmXre2Ml1eGT5czaTq/cKjXGqSkj55IW4SmNZp5TFROGXmzmm7ZlcCCf57Ba3 I74LGN2oTMSXqulIIZjTIB0MpjtZpk0hXoPx7lyCMcUI/VII7l+qCgWL91qwYtTDimIk jq0tgEz/1nsPvqLRRC7t90xiAwbzb/+nPpi0hY+1cvoeT/As1Vw4FbMheKLFDfeDBlyl nAZnsAOQ6vmwutbdBNadLr7BZssRG9zQfAi1cmchR9k5A3bORD5YgOvAlFA5GEU8tHM1 OM+wYS3iHYqh0kbw4Xm/whBl0nnCjwrlOm2kIpWPb3NUboUvGUFnj5gEsS/LGHFyFS9v kCeA== X-Gm-Message-State: AOJu0YyIOsIUb1BLuVJqkgEZfQJZmBBRr7KPUc3tlyyy9g5UPU3mRPoh Rf8jFOpQAG92bwJYKz/jHiuhdT/Q++0= X-Received: from drosen.mtv.corp.google.com ([2620:15c:211:201:459f:6e1a:6be7:55da]) (user=drosen job=sendgmr) by 2002:a25:910:0:b0:d86:55b7:97b0 with SMTP id 16-20020a250910000000b00d8655b797b0mr231052ybj.9.1696288179184; Mon, 02 Oct 2023 16:09:39 -0700 (PDT) Date: Mon, 2 Oct 2023 16:09:34 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.582.g8ccd20d70d-goog Message-ID: <20231002230935.169229-1-drosen@google.com> Subject: [PATCH v2 0/1] Add 16K Support for f2fs From: Daniel Rosenberg To: linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim , Chao Yu , linux-kernel@vger.kernel.org, kernel-team@android.com, Daniel Rosenberg Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 02 Oct 2023 16:09:49 -0700 (PDT) F2fs filesystems currently have two large restrictions around block size. The block size must equal the page size, and the block size must be 4096. The following patch, along with the associated f2fs-tools patch set, relax the latter restriction, allowing you to use 16K block size f2fs on a 16K page size system. It does not allow mounting 4K block size f2fs on a 16k page system. Doing that would require a lot more work, requiring a refactor of all block sized struct similar to the userspace patches, as well as handling the block reading/writing at sub page boundaries. I'm currently leaving that to future work. changes for v2: Adjusted format string Daniel Rosenberg (1): f2fs: Support Block Size == Page Size fs/f2fs/data.c | 2 +- fs/f2fs/inode.c | 2 +- fs/f2fs/node.c | 2 +- fs/f2fs/super.c | 4 +-- include/linux/f2fs_fs.h | 69 ++++++++++++++++++++++++----------------- 5 files changed, 46 insertions(+), 33 deletions(-) base-commit: 3e729e50d01e6a336132d1739866a6463f82faa9 -- 2.42.0.582.g8ccd20d70d-goog