diff options
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/inode.c b/fs/inode.c index bd48e5e6d3e8..913ab2d9a5d1 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/bootmem.h> | 22 | #include <linux/bootmem.h> |
23 | #include <linux/inotify.h> | 23 | #include <linux/inotify.h> |
24 | #include <linux/mount.h> | 24 | #include <linux/mount.h> |
25 | #include <linux/async.h> | ||
25 | 26 | ||
26 | /* | 27 | /* |
27 | * This is needed for the following functions: | 28 | * This is needed for the following functions: |
@@ -110,8 +111,8 @@ static void wake_up_inode(struct inode *inode) | |||
110 | 111 | ||
111 | /** | 112 | /** |
112 | * inode_init_always - perform inode structure intialisation | 113 | * inode_init_always - perform inode structure intialisation |
113 | * @sb - superblock inode belongs to. | 114 | * @sb: superblock inode belongs to |
114 | * @inode - inode to initialise | 115 | * @inode: inode to initialise |
115 | * | 116 | * |
116 | * These are initializations that need to be done on every inode | 117 | * These are initializations that need to be done on every inode |
117 | * allocation as the fields are not initialised by slab allocation. | 118 | * allocation as the fields are not initialised by slab allocation. |
@@ -166,7 +167,7 @@ struct inode *inode_init_always(struct super_block *sb, struct inode *inode) | |||
166 | mapping->a_ops = &empty_aops; | 167 | mapping->a_ops = &empty_aops; |
167 | mapping->host = inode; | 168 | mapping->host = inode; |
168 | mapping->flags = 0; | 169 | mapping->flags = 0; |
169 | mapping_set_gfp_mask(mapping, GFP_HIGHUSER_PAGECACHE); | 170 | mapping_set_gfp_mask(mapping, GFP_HIGHUSER_MOVABLE); |
170 | mapping->assoc_mapping = NULL; | 171 | mapping->assoc_mapping = NULL; |
171 | mapping->backing_dev_info = &default_backing_dev_info; | 172 | mapping->backing_dev_info = &default_backing_dev_info; |
172 | mapping->writeback_index = 0; | 173 | mapping->writeback_index = 0; |
@@ -576,8 +577,8 @@ __inode_add_to_lists(struct super_block *sb, struct hlist_head *head, | |||
576 | 577 | ||
577 | /** | 578 | /** |
578 | * inode_add_to_lists - add a new inode to relevant lists | 579 | * inode_add_to_lists - add a new inode to relevant lists |
579 | * @sb - superblock inode belongs to. | 580 | * @sb: superblock inode belongs to |
580 | * @inode - inode to mark in use | 581 | * @inode: inode to mark in use |
581 | * | 582 | * |
582 | * When an inode is allocated it needs to be accounted for, added to the in use | 583 | * When an inode is allocated it needs to be accounted for, added to the in use |
583 | * list, the owning superblock and the inode hash. This needs to be done under | 584 | * list, the owning superblock and the inode hash. This needs to be done under |
@@ -601,7 +602,7 @@ EXPORT_SYMBOL_GPL(inode_add_to_lists); | |||
601 | * @sb: superblock | 602 | * @sb: superblock |
602 | * | 603 | * |
603 | * Allocates a new inode for given superblock. The default gfp_mask | 604 | * Allocates a new inode for given superblock. The default gfp_mask |
604 | * for allocations related to inode->i_mapping is GFP_HIGHUSER_PAGECACHE. | 605 | * for allocations related to inode->i_mapping is GFP_HIGHUSER_MOVABLE. |
605 | * If HIGHMEM pages are unsuitable or it is known that pages allocated | 606 | * If HIGHMEM pages are unsuitable or it is known that pages allocated |
606 | * for the page cache are not reclaimable or migratable, | 607 | * for the page cache are not reclaimable or migratable, |
607 | * mapping_set_gfp_mask() must be called with suitable flags on the | 608 | * mapping_set_gfp_mask() must be called with suitable flags on the |