Home
last modified time | relevance | path

Searched refs:gfp (Results 1 – 25 of 27) sorted by relevance

12

/fs/notify/fanotify/
Dfanotify.c338 unsigned int fh_len, gfp_t gfp) in fanotify_encode_fh() argument
360 if (gfp && fh_len > FANOTIFY_INLINE_FH_LEN) { in fanotify_encode_fh()
363 ext_buf = kmalloc(fh_len, gfp); in fanotify_encode_fh()
434 gfp_t gfp) in fanotify_alloc_path_event() argument
438 pevent = kmem_cache_alloc(fanotify_path_event_cachep, gfp); in fanotify_alloc_path_event()
450 gfp_t gfp) in fanotify_alloc_perm_event() argument
454 pevent = kmem_cache_alloc(fanotify_perm_event_cachep, gfp); in fanotify_alloc_perm_event()
469 gfp_t gfp) in fanotify_alloc_fid_event() argument
473 ffe = kmem_cache_alloc(fanotify_fid_event_cachep, gfp); in fanotify_alloc_fid_event()
480 gfp); in fanotify_alloc_fid_event()
[all …]
/fs/9p/
Dcache.h30 extern int __v9fs_fscache_release_page(struct page *page, gfp_t gfp);
43 gfp_t gfp) in v9fs_fscache_release_page() argument
45 return __v9fs_fscache_release_page(page, gfp); in v9fs_fscache_release_page()
103 gfp_t gfp) { in v9fs_fscache_release_page() argument
Dvfs_addr.c123 static int v9fs_release_page(struct page *page, gfp_t gfp) in v9fs_release_page() argument
127 return v9fs_fscache_release_page(page, gfp); in v9fs_release_page()
Dcache.c203 int __v9fs_fscache_release_page(struct page *page, gfp_t gfp) in __v9fs_fscache_release_page() argument
210 return fscache_maybe_release_page(v9inode->fscache, page, gfp); in __v9fs_fscache_release_page()
/fs/fscache/
Dpage.c64 gfp_t gfp) in __fscache_maybe_release_page() argument
69 _enter("%p,%p,%x", cookie, page, gfp); in __fscache_maybe_release_page()
128 if (!(gfp & __GFP_DIRECT_RECLAIM) || !(gfp & __GFP_FS)) { in __fscache_maybe_release_page()
138 gfp &= ~__GFP_DIRECT_RECLAIM; in __fscache_maybe_release_page()
433 gfp_t gfp) in __fscache_read_or_alloc_page() argument
499 ret = object->cache->ops->allocate_page(op, page, gfp); in __fscache_read_or_alloc_page()
505 ret = object->cache->ops->read_or_alloc_page(op, page, gfp); in __fscache_read_or_alloc_page()
564 gfp_t gfp) in __fscache_read_or_alloc_pages() argument
627 op, pages, nr_pages, gfp); in __fscache_read_or_alloc_pages()
632 op, pages, nr_pages, gfp); in __fscache_read_or_alloc_pages()
[all …]
/fs/ceph/
Dcache.h53 static inline int ceph_release_fscache_page(struct page *page, gfp_t gfp) in ceph_release_fscache_page() argument
57 return fscache_maybe_release_page(ci->fscache, page, gfp); in ceph_release_fscache_page()
155 static inline int ceph_release_fscache_page(struct page *page, gfp_t gfp) in ceph_release_fscache_page() argument
/fs/ramfs/
Dfile-nommu.c69 gfp_t gfp = mapping_gfp_mask(inode->i_mapping); in ramfs_nommu_expand_for_mapping() local
84 pages = alloc_pages(gfp, order); in ramfs_nommu_expand_for_mapping()
108 gfp); in ramfs_nommu_expand_for_mapping()
/fs/afs/
Ddir_edit.c197 gfp_t gfp; in afs_edit_dir_add() local
209 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add()
210 page0 = find_or_create_page(vnode->vfs_inode.i_mapping, 0, gfp); in afs_edit_dir_add()
241 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add()
243 index, gfp); in afs_edit_dir_add()
Drxrpc.c136 gfp_t gfp) in afs_alloc_call() argument
141 call = kzalloc(sizeof(*call), gfp); in afs_alloc_call()
360 void afs_make_call(struct afs_addr_cursor *ac, struct afs_call *call, gfp_t gfp) in afs_make_call() argument
413 tx_total_len, gfp, in afs_make_call()
Dinternal.h1262 gfp_t gfp) in afs_make_op_call() argument
1269 afs_make_call(&op->ac, call, gfp); in afs_make_op_call()
Ddir.c268 gfp_t gfp = dvnode->vfs_inode.i_mapping->gfp_mask; in afs_read_dir() local
274 req->pages[i] = __page_cache_alloc(gfp); in afs_read_dir()
279 i, gfp); in afs_read_dir()
/fs/cifs/
Dfscache.h75 extern int cifs_fscache_release_page(struct page *page, gfp_t gfp);
142 static inline int cifs_fscache_release_page(struct page *page, gfp_t gfp) in cifs_fscache_release_page() argument
Dfscache.c232 int cifs_fscache_release_page(struct page *page, gfp_t gfp) in cifs_fscache_release_page() argument
240 if (!fscache_maybe_release_page(cifsi->fscache, page, gfp)) in cifs_fscache_release_page()
/fs/
Dbuffer.c845 gfp_t gfp = GFP_NOFS | __GFP_ACCOUNT; in alloc_page_buffers() local
850 gfp |= __GFP_NOFAIL; in alloc_page_buffers()
858 bh = alloc_buffer_head(gfp); in alloc_page_buffers()
957 pgoff_t index, int size, int sizebits, gfp_t gfp) in grow_dev_page() argument
966 gfp_mask = mapping_gfp_constraint(inode->i_mapping, ~__GFP_FS) | gfp; in grow_dev_page()
1020 grow_buffers(struct block_device *bdev, sector_t block, int size, gfp_t gfp) in grow_buffers() argument
1045 return grow_dev_page(bdev, block, index, size, sizebits, gfp); in grow_buffers()
1050 unsigned size, gfp_t gfp) in __getblk_slow() argument
1072 ret = grow_buffers(bdev, block, size, gfp); in __getblk_slow()
1364 unsigned size, gfp_t gfp) in __getblk_gfp() argument
[all …]
Dmpage.c212 gfp_t gfp; in do_mpage_readpage() local
216 gfp = readahead_gfp_mask(page->mapping); in do_mpage_readpage()
219 gfp = mapping_gfp_constraint(page->mapping, GFP_KERNEL); in do_mpage_readpage()
343 bio_max_segs(args->nr_pages), gfp); in do_mpage_readpage()
Dposix_acl.c519 __posix_acl_create(struct posix_acl **acl, gfp_t gfp, umode_t *mode_p) in __posix_acl_create() argument
521 struct posix_acl *clone = posix_acl_clone(*acl, gfp); in __posix_acl_create()
537 __posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, umode_t mode) in __posix_acl_chmod() argument
539 struct posix_acl *clone = posix_acl_clone(*acl, gfp); in __posix_acl_chmod()
/fs/erofs/
Dutils.c9 struct page *erofs_allocpage(struct page **pagepool, gfp_t gfp) in erofs_allocpage() argument
17 page = alloc_page(gfp); in erofs_allocpage()
Dzdata.c361 gfp_t gfp = (mapping_gfp_mask(mc) & ~__GFP_DIRECT_RECLAIM) | in preload_compressed_pages() local
389 newpage = erofs_allocpage(pagepool, gfp); in preload_compressed_pages()
1208 gfp_t gfp) in pickup_page_for_submission() argument
1297 page = erofs_allocpage(pagepool, gfp | __GFP_NOFAIL); in pickup_page_for_submission()
1304 if (!tocache || add_to_page_cache_lru(page, mc, index + nr, gfp)) { in pickup_page_for_submission()
Dinternal.h500 struct page *erofs_allocpage(struct page **pagepool, gfp_t gfp);
/fs/cachefiles/
Drdwr.c394 gfp_t gfp) in cachefiles_read_or_alloc_page() argument
685 gfp_t gfp) in cachefiles_read_or_alloc_pages() argument
798 gfp_t gfp) in cachefiles_allocate_page() argument
836 gfp_t gfp) in cachefiles_allocate_pages() argument
/fs/nfs/
Dfscache.c336 int nfs_fscache_release_page(struct page *page, gfp_t gfp) in nfs_fscache_release_page() argument
345 if (!fscache_maybe_release_page(cookie, page, gfp)) in nfs_fscache_release_page()
Dfscache.h206 static inline int nfs_fscache_release_page(struct page *page, gfp_t gfp) in nfs_fscache_release_page() argument
Dfile.c426 static int nfs_release_page(struct page *page, gfp_t gfp) in nfs_release_page() argument
433 return nfs_fscache_release_page(page, gfp); in nfs_release_page()
/fs/ext4/
Dmballoc.c864 static int ext4_mb_init_cache(struct page *page, char *incore, gfp_t gfp) in ext4_mb_init_cache() argument
897 bh = kzalloc(i, gfp); in ext4_mb_init_cache()
1038 ext4_group_t group, struct ext4_buddy *e4b, gfp_t gfp) in ext4_mb_get_buddy_page_lock() argument
1057 page = find_or_create_page(inode->i_mapping, pnum, gfp); in ext4_mb_get_buddy_page_lock()
1071 page = find_or_create_page(inode->i_mapping, pnum, gfp); in ext4_mb_get_buddy_page_lock()
1097 int ext4_mb_init_group(struct super_block *sb, ext4_group_t group, gfp_t gfp) in ext4_mb_init_group() argument
1120 ret = ext4_mb_get_buddy_page_lock(sb, group, &e4b, gfp); in ext4_mb_init_group()
1130 ret = ext4_mb_init_cache(page, NULL, gfp); in ext4_mb_init_group()
1149 ret = ext4_mb_init_cache(page, e4b.bd_bitmap, gfp); in ext4_mb_init_group()
1168 struct ext4_buddy *e4b, gfp_t gfp) in ext4_mb_load_buddy_gfp() argument
[all …]
/fs/iomap/
Dbuffered-io.c290 gfp_t gfp = mapping_gfp_constraint(page->mapping, GFP_KERNEL); in iomap_readpage_actor() local
291 gfp_t orig_gfp = gfp; in iomap_readpage_actor()
298 gfp |= __GFP_NORETRY | __GFP_NOWARN; in iomap_readpage_actor()
299 ctx->bio = bio_alloc(gfp, bio_max_segs(nr_vecs)); in iomap_readpage_actor()

12