summaryrefslogtreecommitdiff
path: root/console/hurd.ti
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-05-22 19:35:10 +0200
committerJustus Winter <justus@gnupg.org>2016-08-07 23:28:45 +0200
commit0e3a795af98b6441d0a9928036e140978511e272 (patch)
tree801984832811a5f7bb24c847e07b5b47900e9737 /console/hurd.ti
parentceae83bd25aadee094ec9d3a95cf27510cea2037 (diff)
libpager: provide 'pager_create_alloc'
Add a variant to 'pager_create' that allocates memory for the user hook next to the pager data increasing locality. * console/pager.c (pager_clear_user_data): Fix type of 'idx', do not free 'upi'. (user_pager_create): Use the new function. * doc/hurd.texi: Document new function. * ext2fs/pager.c (pager_clear_user_data): Don't free 'upi'. (diskfs_get_filemap): Use the new function. * fatfs/pager.c (pager_clear_user_data): Don't free 'upi'. (diskfs_get_filemap): Use the new function. * isofs/pager.c (pager_clear_user_data): Don't free 'upi'. (diskfs_get_filemap): Use the new function. * libpager/pager-create.c (_pager_create): New generic allocation function. (pager_create): Use the new generic function. (pager_create_alloc): New function. * libpager/pager.h (pager_create_alloc): New prototype.
Diffstat (limited to 'console/hurd.ti')
0 files changed, 0 insertions, 0 deletions