android_kernel_motorola_sm6375/fs/fuse
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Vivek Goyal 99d630bf58
UPSTREAM: virtiofs: add logic to free up a memory range
Add logic to free up a busy memory range. Freed memory range will be
returned to free pool. Add a worker which can be started to select
and free some busy memory ranges.

Process can also steal one of its busy dax ranges if free range is not
available. I will refer it to as direct reclaim.

If free range is not available and nothing can't be stolen from same
inode, caller waits on a waitq for free range to become available.

For reclaiming a range, as of now we need to hold following locks in
specified order.

	down_write(&fi->i_mmap_sem);
	down_write(&fi->dax->sem);

We look for a free range in following order.

A. Try to get a free range.
B. If not, try direct reclaim.
C. If not, wait for a memory range to become free

Change-Id: Idea3464f4c14faabce59fdd493c10f31b9dbd0ae
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2026-05-08 21:46:12 +02:00
..
acl.c
control.c
cuse.c UPSTREAM: fuse: use true,false for bool variable 2026-05-08 21:46:11 +02:00
dax.c UPSTREAM: virtiofs: add logic to free up a memory range 2026-05-08 21:46:12 +02:00
dev.c UPSTREAM: fuse: use dump_page 2026-05-08 21:46:11 +02:00
dir.c virtiofs: serialize truncate/punch_hole and dax fault path 2026-05-08 21:46:12 +02:00
file.c virtiofs: serialize truncate/punch_hole and dax fault path 2026-05-08 21:46:12 +02:00
fuse_i.h UPSTREAM: virtiofs: add logic to free up a memory range 2026-05-08 21:46:12 +02:00
inode.c virtiofs: serialize truncate/punch_hole and dax fault path 2026-05-08 21:46:12 +02:00
Kconfig UPSTREAM: virtiofs: implement dax read/write operations 2026-05-08 21:46:12 +02:00
Makefile UPSTREAM: virtiofs: add a mount option to enable dax 2026-05-08 21:46:11 +02:00
OWNERS
passthrough.c
readdir.c UPSTREAM: fuse: use true,false for bool variable 2026-05-08 21:46:11 +02:00
virtio_fs.c UPSTREAM: virtiofs: add logic to free up a memory range 2026-05-08 21:46:12 +02:00
xattr.c This is the 5.4.284 stable release 2024-09-12 10:37:37 +00:00