Re: [PATCH] virtio-balloon: Use virtio_find_vqs() helper

2021-07-16 Thread David Hildenbrand
On 16.07.21 14:53, David Hildenbrand wrote: On 16.07.21 14:46, tianxianting wrote: Do you interest in this patch? just little improvment:) I am, especially when I'm cc'ed and aware of it ;) Sorry, just found it in my gmail spam folder ... WTH. Why does the original one get filtered but

Re: [PATCH] virtio-balloon: Use virtio_find_vqs() helper

2021-07-16 Thread David Hildenbrand
On 16.07.21 14:46, tianxianting wrote: Do you interest in this patch? just little improvment:) I am, especially when I'm cc'ed and aware of it ;) Reviewed-by: David Hildenbrand One nit below 在 2021/7/13 下午11:38, Xianting Tian 写道: From: Xianting Tian Use the helper virtio_find_vqs().

[PATCH v2 2/4] fuse: Make DAX mount option a tri-state

2021-07-16 Thread Jeffle Xu
We add 'always', 'never', and 'inode' (default). '-o dax' continues to operate the same which is equivalent to 'always'. By the time this patch is applied, 'inode' mode is actually equal to 'always' mode, before the per-file DAX flag is introduced in the following patch. Signed-off-by: Jeffle Xu

[PATCH v2 4/4] fuse: support changing per-file DAX flag inside guest

2021-07-16 Thread Jeffle Xu
Fuse client can enable or disable per-file DAX inside guest by chattr(1). Similarly the new state won't be updated until the file is closed and reopened later. It is worth nothing that it is a best-effort style, since whether per-file DAX is enabled or not is controlled by fuse_attr.flags

[PATCH v2 3/4] fuse: add per-file DAX flag

2021-07-16 Thread Jeffle Xu
Add one flag for fuse_attr.flags indicating if DAX shall be enabled for this file. When the per-file DAX flag changes for an *opened* file, the state of the file won't be updated until this file is closed and reopened later. Signed-off-by: Jeffle Xu --- fs/fuse/dax.c | 21

[PATCH v2 1/4] fuse: add fuse_should_enable_dax() helper

2021-07-16 Thread Jeffle Xu
This is in prep for following per-file DAX checking. Signed-off-by: Jeffle Xu --- fs/fuse/dax.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fs/fuse/dax.c b/fs/fuse/dax.c index 0e5407f48e6a..c6f4e82e65f3 100644 --- a/fs/fuse/dax.c +++ b/fs/fuse/dax.c @@ -1336,11

[PATCH v2 0/4] virtiofs,fuse: support per-file DAX

2021-07-16 Thread Jeffle Xu
This patchset adds support of per-file DAX for virtiofs, which is inspired by Ira Weiny's work on ext4[1] and xfs[2]. There are three related scenarios: 1. Alloc inode: get per-file DAX flag from fuse_attr.flags. (patch 3) 2. Per-file DAX flag changes when the file has been opened. (patch 3) In