From: Vivek Goyal <vgoyal@redhat.com>
To: Jeffle Xu <jefflexu@linux.alibaba.com>
Cc: virtio-fs@redhat.com, linux-fsdevel@vger.kernel.org,
joseph.qi@linux.alibaba.com, miklos@szeredi.hu
Subject: Re: [Virtio-fs] [PATCH v8 1/7] fuse: add fuse_should_enable_dax() helper
Date: Mon, 13 Dec 2021 13:08:26 -0500 [thread overview]
Message-ID: <YbeMGlULQP53bSlq@redhat.com> (raw)
In-Reply-To: <20211125070530.79602-2-jefflexu@linux.alibaba.com>
On Thu, Nov 25, 2021 at 03:05:24PM +0800, Jeffle Xu wrote:
> This is in prep for following per inode DAX checking.
>
> Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Vivek Goyal <vgoyal@redhat.com>
Vivek
> ---
> 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 5778ebfbce5e..4c48a57632bd 100644
> --- a/fs/fuse/dax.c
> +++ b/fs/fuse/dax.c
> @@ -1329,11 +1329,19 @@ static const struct address_space_operations fuse_dax_file_aops = {
> .invalidatepage = noop_invalidatepage,
> };
>
> -void fuse_dax_inode_init(struct inode *inode)
> +static bool fuse_should_enable_dax(struct inode *inode)
> {
> struct fuse_conn *fc = get_fuse_conn(inode);
>
> if (!fc->dax)
> + return false;
> +
> + return true;
> +}
> +
> +void fuse_dax_inode_init(struct inode *inode)
> +{
> + if (!fuse_should_enable_dax(inode))
> return;
>
> inode->i_flags |= S_DAX;
> --
> 2.27.0
>
WARNING: multiple messages have this Message-ID (diff)
From: Vivek Goyal <vgoyal@redhat.com>
To: Jeffle Xu <jefflexu@linux.alibaba.com>
Cc: stefanha@redhat.com, miklos@szeredi.hu, virtio-fs@redhat.com,
linux-fsdevel@vger.kernel.org, joseph.qi@linux.alibaba.com
Subject: Re: [PATCH v8 1/7] fuse: add fuse_should_enable_dax() helper
Date: Mon, 13 Dec 2021 13:08:26 -0500 [thread overview]
Message-ID: <YbeMGlULQP53bSlq@redhat.com> (raw)
In-Reply-To: <20211125070530.79602-2-jefflexu@linux.alibaba.com>
On Thu, Nov 25, 2021 at 03:05:24PM +0800, Jeffle Xu wrote:
> This is in prep for following per inode DAX checking.
>
> Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Vivek Goyal <vgoyal@redhat.com>
Vivek
> ---
> 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 5778ebfbce5e..4c48a57632bd 100644
> --- a/fs/fuse/dax.c
> +++ b/fs/fuse/dax.c
> @@ -1329,11 +1329,19 @@ static const struct address_space_operations fuse_dax_file_aops = {
> .invalidatepage = noop_invalidatepage,
> };
>
> -void fuse_dax_inode_init(struct inode *inode)
> +static bool fuse_should_enable_dax(struct inode *inode)
> {
> struct fuse_conn *fc = get_fuse_conn(inode);
>
> if (!fc->dax)
> + return false;
> +
> + return true;
> +}
> +
> +void fuse_dax_inode_init(struct inode *inode)
> +{
> + if (!fuse_should_enable_dax(inode))
> return;
>
> inode->i_flags |= S_DAX;
> --
> 2.27.0
>
next prev parent reply other threads:[~2021-12-13 18:08 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 7:05 [Virtio-fs] [PATCH v8 0/7] fuse,virtiofs: support per-file DAX Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-11-25 7:05 ` [Virtio-fs] [PATCH v8 1/7] fuse: add fuse_should_enable_dax() helper Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-12-13 18:08 ` Vivek Goyal [this message]
2021-12-13 18:08 ` Vivek Goyal
2021-11-25 7:05 ` [Virtio-fs] [PATCH v8 2/7] fuse: make DAX mount option a tri-state Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-12-13 18:09 ` [Virtio-fs] " Vivek Goyal
2021-12-13 18:09 ` Vivek Goyal
2021-11-25 7:05 ` [Virtio-fs] [PATCH v8 3/7] fuse: support per inode DAX in fuse protocol Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-12-13 18:09 ` [Virtio-fs] " Vivek Goyal
2021-12-13 18:09 ` Vivek Goyal
2021-11-25 7:05 ` [Virtio-fs] [PATCH v8 4/7] fuse: enable per inode DAX Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-12-13 18:10 ` [Virtio-fs] " Vivek Goyal
2021-12-13 18:10 ` Vivek Goyal
2021-11-25 7:05 ` [Virtio-fs] [PATCH v8 5/7] fuse: negotiate per inode DAX in FUSE_INIT Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-12-13 18:10 ` [Virtio-fs] " Vivek Goyal
2021-12-13 18:10 ` Vivek Goyal
2021-11-25 7:05 ` [Virtio-fs] [PATCH v8 6/7] fuse: mark inode DONT_CACHE when per inode DAX hint changes Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-12-07 16:00 ` [Virtio-fs] " Vivek Goyal
2021-12-07 16:00 ` Vivek Goyal
2021-12-08 1:36 ` [Virtio-fs] " JeffleXu
2021-12-08 1:36 ` JeffleXu
2021-12-13 18:10 ` [Virtio-fs] " Vivek Goyal
2021-12-13 18:10 ` Vivek Goyal
2021-11-25 7:05 ` [Virtio-fs] [PATCH v8 7/7] Documentation/filesystem/dax: DAX on virtiofs Jeffle Xu
2021-11-25 7:05 ` Jeffle Xu
2021-12-13 18:11 ` [Virtio-fs] " Vivek Goyal
2021-12-13 18:11 ` Vivek Goyal
2021-12-13 18:12 ` [Virtio-fs] [PATCH v8 0/7] fuse,virtiofs: support per-file DAX Vivek Goyal
2021-12-13 18:12 ` Vivek Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YbeMGlULQP53bSlq@redhat.com \
--to=vgoyal@redhat.com \
--cc=jefflexu@linux.alibaba.com \
--cc=joseph.qi@linux.alibaba.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=virtio-fs@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.