mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 00/11] ramfs: Use dynamically sized chunks
@ 2020-06-15  6:02 Sascha Hauer
  2020-06-15  6:02 ` [PATCH 01/11] update list.h from Linux-5.7 Sascha Hauer
                   ` (10 more replies)
  0 siblings, 11 replies; 16+ messages in thread
From: Sascha Hauer @ 2020-06-15  6:02 UTC (permalink / raw)
  To: Barebox List

So far ramfs uses equally sized chunks. This series changes it to use
dynamically sized chunks instead. When making a file bigger ramfs now
always tries to put the additional data in a single chunk. With this
we get fewer chunks and with it better performance as we have less list
iterations to do.
Also this allows us to provide a memmap implementation for ramfs which
works for a good bunch of cases. When a file is created, truncated to
its final size and then filled with data, the data will end up in one
contiguous memory region. In this case we can provide a pointer to this
data which is important for usecases where we would otherwise duplicate
big image files in memory.

Sascha

Sascha Hauer (11):
  update list.h from Linux-5.7
  fs: Add destroy_inode callbacks to filesystems
  fs: Make iput() accept NULL pointers
  fs: free inodes we no longer need
  digest: Drop usage of memmap
  fs: ramfs: Return -ENOSPC
  fs: ramfs: Drop dead code
  fs: ramfs: Use dynamically sized chunks
  fs: ramfs: Implement memmap
  libfile: copy_file: Fix calling discard_range
  libfile: copy_file: explicitly truncate to final size

 crypto/digest.c          |  27 +-
 fs/cramfs/cramfs.c       |  10 +
 fs/devfs.c               |   8 +
 fs/fs.c                  |   7 +-
 fs/nfs.c                 |   8 +
 fs/ramfs.c               | 349 ++++++++++---------
 fs/squashfs/squashfs.c   |  10 +-
 include/linux/compiler.h |   1 -
 include/linux/list.h     | 700 ++++++++++++++++++++++++++++++---------
 include/linux/poison.h   |  26 ++
 include/linux/types.h    |  12 +
 lib/libfile.c            |  25 +-
 12 files changed, 826 insertions(+), 357 deletions(-)
 create mode 100644 include/linux/poison.h

-- 
2.27.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2020-08-10 11:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15  6:02 [PATCH 00/11] ramfs: Use dynamically sized chunks Sascha Hauer
2020-06-15  6:02 ` [PATCH 01/11] update list.h from Linux-5.7 Sascha Hauer
2020-06-15  6:02 ` [PATCH 02/11] fs: Add destroy_inode callbacks to filesystems Sascha Hauer
2020-06-15  6:02 ` [PATCH 03/11] fs: Make iput() accept NULL pointers Sascha Hauer
2020-06-15  6:02 ` [PATCH 04/11] fs: free inodes we no longer need Sascha Hauer
2020-08-03 22:02   ` Ahmad Fatoum
2020-08-10 11:13     ` Sascha Hauer
2020-06-15  6:02 ` [PATCH 05/11] digest: Drop usage of memmap Sascha Hauer
2020-06-15  6:02 ` [PATCH 06/11] fs: ramfs: Return -ENOSPC Sascha Hauer
2020-06-15  6:02 ` [PATCH 07/11] fs: ramfs: Drop dead code Sascha Hauer
2020-06-15  6:02 ` [PATCH 08/11] fs: ramfs: Use dynamically sized chunks Sascha Hauer
2020-07-02 14:28   ` Ahmad Fatoum
2020-07-05 14:14     ` Sascha Hauer
2020-06-15  6:02 ` [PATCH 09/11] fs: ramfs: Implement memmap Sascha Hauer
2020-06-15  6:02 ` [PATCH 10/11] libfile: copy_file: Fix calling discard_range Sascha Hauer
2020-06-15  6:02 ` [PATCH 11/11] libfile: copy_file: explicitly truncate to final size Sascha Hauer

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