1
0
Files
linux/fs/afs
David Howells 87182759cd afs: Fix order-1 allocation in afs_do_lookup()
afs_do_lookup() will do an order-1 allocation to allocate status records if
there are more than 39 vnodes to stat.

Fix this by allocating an array of {status,callback} records for each vnode
we want to examine using vmalloc() if larger than a page.

This not only gets rid of the order-1 allocation, but makes it easier to
grow beyond 50 records for YFS servers.  It also allows us to move to
{status,callback} tuples for other calls too and makes it easier to lock
across the application of the status and the callback to the vnode.

Fixes: 5cf9dd55a0 ("afs: Prospectively look up extra files when doing a single lookup")
Signed-off-by: David Howells <dhowells@redhat.com>
2019-05-16 16:25:21 +01:00
..
2019-05-07 16:48:44 +01:00
2019-05-16 12:58:23 +01:00
2019-05-16 16:25:21 +01:00
2019-05-16 16:25:21 +01:00
2019-05-16 16:25:21 +01:00
2019-05-16 16:25:21 +01:00
2018-10-12 13:18:57 +02:00
2019-04-08 18:35:56 -05:00
2019-05-16 16:25:21 +01:00
2019-05-16 16:25:21 +01:00
2019-05-16 12:58:23 +01:00
2019-05-16 16:25:21 +01:00
2019-02-28 03:29:38 -05:00