Use OBD_ALLOC_PAGE_ARRAY_LARGE() for oti_dio_pages, as this allocation
can be as large as 512KB due to large PTLRPC_MAX_BRW_PAGES.
Test-Parameters: trivial
Fixes:
72372486a5e9 ("LU-11347 osd: do not use pagecache for I/O")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I0a0557e42bb5db5612c78e6d9b87f366a23ebbe5
Reviewed-on: https://review.whamcloud.com/38943
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
- OBD_FREE_PTR_ARRAY(info->oti_dio_pages, PTLRPC_MAX_BRW_PAGES);
+ OBD_FREE_PTR_ARRAY_LARGE(info->oti_dio_pages,
+ PTLRPC_MAX_BRW_PAGES);
}
if (info->oti_inode != NULL)
}
if (info->oti_inode != NULL)
bypass_checks:
if (!cache && unlikely(!oti->oti_dio_pages)) {
bypass_checks:
if (!cache && unlikely(!oti->oti_dio_pages)) {
- OBD_ALLOC_PTR_ARRAY(oti->oti_dio_pages, PTLRPC_MAX_BRW_PAGES);
+ OBD_ALLOC_PTR_ARRAY_LARGE(oti->oti_dio_pages,
+ PTLRPC_MAX_BRW_PAGES);
if (!oti->oti_dio_pages)
return -ENOMEM;
}
if (!oti->oti_dio_pages)
return -ENOMEM;
}