[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <597372bf-06dc-defa-0628-a1c140235c1e@linux.alibaba.com>
Date: Tue, 29 Mar 2022 14:14:32 +0800
From: JeffleXu <jefflexu@...ux.alibaba.com>
To: dhowells@...hat.com, linux-cachefs@...hat.com, xiang@...nel.org,
chao@...nel.org, linux-erofs@...ts.ozlabs.org
Cc: gregkh@...uxfoundation.org, fannaihao@...du.com,
tao.peng@...ux.alibaba.com, willy@...radead.org,
linux-kernel@...r.kernel.org, tianzichen@...ishou.com,
joseph.qi@...ux.alibaba.com, bo.liu@...ux.alibaba.com,
linux-fsdevel@...r.kernel.org, luodaowen.backend@...edance.com,
eguan@...ux.alibaba.com, gerry@...ux.alibaba.com,
torvalds@...ux-foundation.org
Subject: Re: [Linux-cachefs] [PATCH v6 03/22] cachefiles: notify user daemon
with anon_fd when looking up cookie
On 3/25/22 8:22 PM, Jeffle Xu wrote:
> diff --git a/fs/cachefiles/internal.h b/fs/cachefiles/internal.h
> index e80673d0ab97..8a0f1b691aca 100644
> --- a/fs/cachefiles/internal.h
> +++ b/fs/cachefiles/internal.h
> @@ -15,6 +15,8 @@
>
> +/*
> + * ondemand.c
> + */
> +#ifdef CONFIG_CACHEFILES_ONDEMAND
> +extern ssize_t cachefiles_ondemand_daemon_read(struct cachefiles_cache *cache,
> + char __user *_buffer,
> + size_t buflen);
> +
> +extern int cachefiles_ondemand_cinit(struct cachefiles_cache *cache,
> + char *args);
> +
> +extern int cachefiles_ondemand_init_object(struct cachefiles_object *object);
> +
> +#else
> +ssize_t cachefiles_ondemand_daemon_read(struct cachefiles_cache *cache,
> + char __user *_buffer, size_t buflen)
Needs to be declared as static inline ...
> +{
> + return -EOPNOTSUPP;
> +}
> +
> +static inline int cachefiles_ondemand_init_object(struct cachefiles_object *object)
> +{
> + return 0;
> +}
> +#endif
--
Thanks,
Jeffle
Powered by blists - more mailing lists