Re: [PATCH v5 06/11] fuse: support large folios for symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 4/26/25 02:08, Joanne Koong wrote:
> Support large folios for symlinks and change the name from
> fuse_getlink_page() to fuse_getlink_folio().
> 
> Signed-off-by: Joanne Koong <joannelkoong@xxxxxxxxx>
> Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
> Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>

Reviewed-by: Bernd Schubert <bschubert@xxxxxxx>

> ---
>  fs/fuse/dir.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
> index 1fb0b15a6088..3003119559e8 100644
> --- a/fs/fuse/dir.c
> +++ b/fs/fuse/dir.c
> @@ -1629,10 +1629,10 @@ static int fuse_permission(struct mnt_idmap *idmap,
>  	return err;
>  }
>  
> -static int fuse_readlink_page(struct inode *inode, struct folio *folio)
> +static int fuse_readlink_folio(struct inode *inode, struct folio *folio)
>  {
>  	struct fuse_mount *fm = get_fuse_mount(inode);
> -	struct fuse_folio_desc desc = { .length = PAGE_SIZE - 1 };
> +	struct fuse_folio_desc desc = { .length = folio_size(folio) - 1 };
>  	struct fuse_args_pages ap = {
>  		.num_folios = 1,
>  		.folios = &folio,
> @@ -1687,7 +1687,7 @@ static const char *fuse_get_link(struct dentry *dentry, struct inode *inode,
>  	if (!folio)
>  		goto out_err;
>  
> -	err = fuse_readlink_page(inode, folio);
> +	err = fuse_readlink_folio(inode, folio);
>  	if (err) {
>  		folio_put(folio);
>  		goto out_err;
> @@ -2277,7 +2277,7 @@ void fuse_init_dir(struct inode *inode)
>  
>  static int fuse_symlink_read_folio(struct file *null, struct folio *folio)
>  {
> -	int err = fuse_readlink_page(folio->mapping->host, folio);
> +	int err = fuse_readlink_folio(folio->mapping->host, folio);
>  
>  	if (!err)
>  		folio_mark_uptodate(folio);





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux