diff options
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/inode.c b/fs/inode.c index 9a012cc5b6cd..47b87b071de3 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -145,7 +145,7 @@ static struct inode *alloc_inode(struct super_block *sb) | |||
145 | mapping->a_ops = &empty_aops; | 145 | mapping->a_ops = &empty_aops; |
146 | mapping->host = inode; | 146 | mapping->host = inode; |
147 | mapping->flags = 0; | 147 | mapping->flags = 0; |
148 | mapping_set_gfp_mask(mapping, GFP_HIGHUSER); | 148 | mapping_set_gfp_mask(mapping, GFP_HIGHUSER_PAGECACHE); |
149 | mapping->assoc_mapping = NULL; | 149 | mapping->assoc_mapping = NULL; |
150 | mapping->backing_dev_info = &default_backing_dev_info; | 150 | mapping->backing_dev_info = &default_backing_dev_info; |
151 | 151 | ||
@@ -519,7 +519,13 @@ repeat: | |||
519 | * new_inode - obtain an inode | 519 | * new_inode - obtain an inode |
520 | * @sb: superblock | 520 | * @sb: superblock |
521 | * | 521 | * |
522 | * Allocates a new inode for given superblock. | 522 | * Allocates a new inode for given superblock. The default gfp_mask |
523 | * for allocations related to inode->i_mapping is GFP_HIGHUSER_PAGECACHE. | ||
524 | * If HIGHMEM pages are unsuitable or it is known that pages allocated | ||
525 | * for the page cache are not reclaimable or migratable, | ||
526 | * mapping_set_gfp_mask() must be called with suitable flags on the | ||
527 | * newly created inode's mapping | ||
528 | * | ||
523 | */ | 529 | */ |
524 | struct inode *new_inode(struct super_block *sb) | 530 | struct inode *new_inode(struct super_block *sb) |
525 | { | 531 | { |