xfs: support in-memory buffer cache targets
Allow the buffer cache to target in-memory files by making it possible to have a buftarg that maps pages from private shmem files. As the prevous patch alludes, the in-memory buftarg contains its own cache, points to a shmem file, and does not point to a block_device. The next few patches will make it possible to construct an xfs_btree in pageable memory by using this buftarg. Signed-off-by:Darrick J. Wong <djwong@kernel.org> Reviewed-by:
Christoph Hellwig <hch@lst.de>
Showing
- fs/xfs/Kconfig 4 additions, 0 deletionsfs/xfs/Kconfig
- fs/xfs/Makefile 1 addition, 0 deletionsfs/xfs/Makefile
- fs/xfs/xfs_buf.c 86 additions, 46 deletionsfs/xfs/xfs_buf.c
- fs/xfs/xfs_buf.h 9 additions, 0 deletionsfs/xfs/xfs_buf.h
- fs/xfs/xfs_buf_mem.c 189 additions, 0 deletionsfs/xfs/xfs_buf_mem.c
- fs/xfs/xfs_buf_mem.h 30 additions, 0 deletionsfs/xfs/xfs_buf_mem.h
- fs/xfs/xfs_trace.c 1 addition, 0 deletionsfs/xfs/xfs_trace.c
- fs/xfs/xfs_trace.h 49 additions, 0 deletionsfs/xfs/xfs_trace.h
Please register or sign in to comment