[PATCH] netfs, afs: Fix symlink reading

Paulo Alcantara pc at manguebit.org
Tue Sep 15 10:16:51 PDT 2026


David Howells <dhowells at redhat.com> writes:

> Fix the reading of symlinks from the cache in afs by making netfslib trim
> the amount read down to i_size.  The problem is that afs sets the size of
> the iterator to the size of the buffer (PAGE_SIZE) so that the cache can
> round the read size up to the cache's DIO size.
>
> Note that this also impacts the reading of AFS mountpoints as they're just
> stored as symlinks with an odd file mode.
>
> Fixes: c0410adf3da6 ("afs: Fix the locking used by afs_get_link()")
> cc: Paulo Alcantara <pc at manguebit.org>
> cc: Marc Dionne <marc.dionne at auristor.com>
> cc: linux-afs at lists.infradead.org
> cc: netfs at lists.linux.dev
> cc: linux-fsdevel at vger.kernel.org

Reviewed-by: Paulo Alcantara <pc at manguebit.org>



More information about the linux-afs mailing list