mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ceph: use alloc_page() in fill_fscrypt_truncate()
fill_fscrypt_truncate() allocates a scratch page with __page_cache_alloc(). The page never enters the page cache and is freed with __free_pages(). It does not need the cpuset memory spread policy that __page_cache_alloc() applies, so use alloc_page() instead. Assisted-by: Cursor Signed-off-by: Tal Zussman <tz2294@columbia.edu> Reviewed-by: Alex Markuze <amarkuze@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
f97509aff5
commit
516b07ee26
|
|
@ -2544,7 +2544,7 @@ static int fill_fscrypt_truncate(struct inode *inode,
|
|||
goto out;
|
||||
}
|
||||
|
||||
page = __page_cache_alloc(GFP_KERNEL);
|
||||
page = alloc_page(GFP_KERNEL);
|
||||
if (page == NULL) {
|
||||
ret = -ENOMEM;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user