public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Add 16K Support for f2fs
@ 2023-08-16  1:14 Daniel Rosenberg
  2023-08-16  1:14 ` [PATCH 1/1] ANDROID: f2fs: Support Block Size == Page Size Daniel Rosenberg
  2023-08-16  2:34 ` [PATCH 0/1] Add 16K Support for f2fs Eric Biggers
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Rosenberg @ 2023-08-16  1:14 UTC (permalink / raw)
  To: linux-f2fs-devel
  Cc: Jaegeuk Kim, Chao Yu, linux-kernel, kernel-team, Daniel Rosenberg

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. As far as I know, buffer_heads are
still the main way this is handled in other filesystems. Is there a different
option there? I know there's a general desire to move away from buffer_heads,
but I don't know of any replacements covering that use case. And it would feel
a bit silly to not be able to read older filesystems from a 16k system...

Daniel Rosenberg (1):
  ANDROID: f2fs: Support Block Size == Page Size

 fs/f2fs/data.c          |  2 +-
 fs/f2fs/node.c          |  2 +-
 fs/f2fs/super.c         |  4 +--
 include/linux/f2fs_fs.h | 69 ++++++++++++++++++++++++-----------------
 4 files changed, 45 insertions(+), 32 deletions(-)


base-commit: 0cc81b1ad51287847e494e055e5d3426f95e7921
-- 
2.41.0.694.ge786442a9b-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-16  4:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16  1:14 [PATCH 0/1] Add 16K Support for f2fs Daniel Rosenberg
2023-08-16  1:14 ` [PATCH 1/1] ANDROID: f2fs: Support Block Size == Page Size Daniel Rosenberg
2023-08-16  4:11   ` kernel test robot
2023-08-16  2:34 ` [PATCH 0/1] Add 16K Support for f2fs Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox