]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: support in-memory buffer cache targets
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:10 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:40 +0000 (11:37 -0700)
commit124b388dac17f59cd8f80b12821f9ddddfe2309c
treeabacff4a28417faa41a40ed59399595d493eddaa
parentb944a053482684915db67612f29337ba85f6a86d
libxfs: support in-memory buffer cache targets

Allow the buffer cache to target in-memory files by connecting it to
xfiles.  The next few patches will enable creating xfs_btrees in memory.
Unlike the kernel version of this patch, we use a partitioned xfile to
avoid overflowing the fd table instead of opening a separate memfd for
each target.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/Makefile
libxfs/buf_mem.c [new file with mode: 0644]
libxfs/buf_mem.h [new file with mode: 0644]
libxfs/init.c
libxfs/libxfs_io.h
libxfs/rdwr.c