Re: [PATCH v6 1/2] vfs: export invalidate_inodes()

From: Dave Chinner
Date: Mon Feb 17 2025 - 19:39:40 EST


On Mon, Feb 17, 2025 at 01:32:27PM +0000, Luis Henriques wrote:
> Signed-off-by: Luis Henriques <luis@xxxxxxxxxx>
> ---
> fs/inode.c | 1 +
> fs/internal.h | 1 -
> include/linux/fs.h | 1 +
> 3 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/fs/inode.c b/fs/inode.c
> index 5587aabdaa5e..88387ecb2c34 100644
> --- a/fs/inode.c
> +++ b/fs/inode.c
> @@ -939,6 +939,7 @@ void invalidate_inodes(struct super_block *sb)
>
> dispose_list(&dispose);
> }
> +EXPORT_SYMBOL(invalidate_inodes);

Oh, I didn't realise the FUSE core wasn't built in. That makes me
even less enthusiastic about this....

Ok, if this is going to happen, you need to pull in the change I
made to get rid of invalidate_inodes() because it is now a duplicate of
evict_inodes(). evict_inodes() is already EXPORT_SYMBOL_GPL(), so
then this patch goes away.

-Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx