You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] gfp_t: fs/*
- ->releasepage() annotated (s/int/gfp_t), instances updated - missing gfp_t in fs/* added - fixed misannotation from the original sweep caught by bitwise checks: XFS used __nocast both for gfp_t and for flags used by XFS allocator. The latter left with unsigned int __nocast; we might want to add a different type for those but for now let's leave them alone. That, BTW, is a case when __nocast use had been actively confusing - it had been used in the same code for two different and similar types, with no way to catch misuses. Switch of gfp_t to bitwise had caught that immediately... One tricky bit is left alone to be dealt with later - mapping->flags is a mix of gfp_t and error indications. Left alone for now. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
+1
-1
@@ -1606,7 +1606,7 @@ int journal_blocks_per_page(struct inode *inode)
|
||||
* Simple support for retrying memory allocations. Introduced to help to
|
||||
* debug different VM deadlock avoidance strategies.
|
||||
*/
|
||||
void * __jbd_kmalloc (const char *where, size_t size, int flags, int retry)
|
||||
void * __jbd_kmalloc (const char *where, size_t size, gfp_t flags, int retry)
|
||||
{
|
||||
return kmalloc(size, flags | (retry ? __GFP_NOFAIL : 0));
|
||||
}
|
||||
|
||||
@@ -1621,7 +1621,7 @@ out:
|
||||
* while the data is part of a transaction. Yes?
|
||||
*/
|
||||
int journal_try_to_free_buffers(journal_t *journal,
|
||||
struct page *page, int unused_gfp_mask)
|
||||
struct page *page, gfp_t unused_gfp_mask)
|
||||
{
|
||||
struct buffer_head *head;
|
||||
struct buffer_head *bh;
|
||||
|
||||
Reference in New Issue
Block a user