[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>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Linus Torvalds

vecāks
7d877f3bda
revīzija
27496a8c67
@@ -198,7 +198,7 @@ static void init_once(void *foo, kmem_cache_t *cachep, unsigned long flags)
|
||||
}
|
||||
}
|
||||
|
||||
static inline struct metapage *alloc_metapage(unsigned int gfp_mask)
|
||||
static inline struct metapage *alloc_metapage(gfp_t gfp_mask)
|
||||
{
|
||||
return mempool_alloc(metapage_mempool, gfp_mask);
|
||||
}
|
||||
@@ -534,7 +534,7 @@ add_failed:
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
static int metapage_releasepage(struct page *page, int gfp_mask)
|
||||
static int metapage_releasepage(struct page *page, gfp_t gfp_mask)
|
||||
{
|
||||
struct metapage *mp;
|
||||
int busy = 0;
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user