Home
last modified time | relevance | path

Searched refs:gfp_flags (Results 1 – 25 of 32) sorted by relevance

12

/fs/crypto/
Dcrypto.c50 struct page *fscrypt_alloc_bounce_page(gfp_t gfp_flags) in fscrypt_alloc_bounce_page() argument
52 return mempool_alloc(fscrypt_bounce_page_pool, gfp_flags); in fscrypt_alloc_bounce_page()
104 unsigned int offs, gfp_t gfp_flags) in fscrypt_crypt_block() argument
121 req = skcipher_request_alloc(tfm, gfp_flags); in fscrypt_crypt_block()
175 gfp_t gfp_flags) in fscrypt_encrypt_pagecache_blocks() argument
193 ciphertext_page = fscrypt_alloc_bounce_page(gfp_flags); in fscrypt_encrypt_pagecache_blocks()
200 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
231 u64 lblk_num, gfp_t gfp_flags) in fscrypt_encrypt_block_inplace() argument
234 len, offs, gfp_flags); in fscrypt_encrypt_block_inplace()
Dfscrypt_private.h277 unsigned int offs, gfp_t gfp_flags);
278 struct page *fscrypt_alloc_bounce_page(gfp_t gfp_flags);
/fs/nfs/filelayout/
Dfilelayout.c540 gfp_t gfp_flags) in filelayout_check_deviceid() argument
552 lo->plh_lc_cred, gfp_flags); in filelayout_check_deviceid()
602 gfp_t gfp_flags) in filelayout_check_layout() argument
653 gfp_t gfp_flags) in filelayout_decode_layout() argument
664 scratch = alloc_page(gfp_flags); in filelayout_decode_layout()
706 gfp_flags); in filelayout_decode_layout()
713 fl->fh_array[i] = kmalloc(sizeof(struct nfs_fh), gfp_flags); in filelayout_decode_layout()
768 gfp_t gfp_flags) in filelayout_alloc_lseg() argument
774 fl = kzalloc(sizeof(*fl), gfp_flags); in filelayout_alloc_lseg()
778 rc = filelayout_decode_layout(layoutid, fl, lgr, gfp_flags); in filelayout_alloc_lseg()
[all …]
Dfilelayoutdev.c64 gfp_t gfp_flags) in nfs4_fl_alloc_deviceid_node() argument
80 scratch = alloc_page(gfp_flags); in nfs4_fl_alloc_deviceid_node()
102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
141 gfp_flags); in nfs4_fl_alloc_deviceid_node()
164 &stream, gfp_flags); in nfs4_fl_alloc_deviceid_node()
174 dsaddr->ds_list[i] = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_fl_alloc_deviceid_node()
Dfilelayout.h114 struct pnfs_device *pdev, gfp_t gfp_flags);
/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c43 gfp_t gfp_flags) in nfs4_ff_alloc_deviceid_node() argument
58 scratch = alloc_page(gfp_flags); in nfs4_ff_alloc_deviceid_node()
62 new_ds = kzalloc(sizeof(struct nfs4_ff_layout_ds), gfp_flags); in nfs4_ff_alloc_deviceid_node()
84 &stream, gfp_flags); in nfs4_ff_alloc_deviceid_node()
104 gfp_flags); in nfs4_ff_alloc_deviceid_node()
150 new_ds->ds = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_ff_alloc_deviceid_node()
253 gfp_t gfp_flags) in ff_layout_track_ds_error() argument
263 dserr = kmalloc(sizeof(*dserr), gfp_flags); in ff_layout_track_ds_error()
Dflexfilelayout.h191 gfp_t gfp_flags);
197 gfp_t gfp_flags);
Dflexfilelayout.c46 ff_layout_alloc_layout_hdr(struct inode *inode, gfp_t gfp_flags) in ff_layout_alloc_layout_hdr() argument
50 ffl = kzalloc(sizeof(*ffl), gfp_flags); in ff_layout_alloc_layout_hdr()
219 static struct nfs4_ff_layout_mirror *ff_layout_alloc_mirror(gfp_t gfp_flags) in ff_layout_alloc_mirror() argument
223 mirror = kzalloc(sizeof(*mirror), gfp_flags); in ff_layout_alloc_mirror()
362 gfp_t gfp_flags) in ff_layout_alloc_lseg() argument
375 scratch = alloc_page(gfp_flags); in ff_layout_alloc_lseg()
400 gfp_flags); in ff_layout_alloc_lseg()
426 fls->mirror_array[i] = ff_layout_alloc_mirror(gfp_flags); in ff_layout_alloc_lseg()
460 gfp_flags); in ff_layout_alloc_lseg()
489 if (gfp_flags & __GFP_FS) in ff_layout_alloc_lseg()
[all …]
/fs/nfs/
Dpnfs_dev.c97 const struct cred *cred, gfp_t gfp_flags) in nfs4_get_device_info() argument
118 pdev = kzalloc(sizeof(*pdev), gfp_flags); in nfs4_get_device_info()
122 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); in nfs4_get_device_info()
127 pages[i] = alloc_page(gfp_flags); in nfs4_get_device_info()
150 gfp_flags); in nfs4_get_device_info()
Dpnfs_nfs.c97 pnfs_alloc_commit_array(size_t n, gfp_t gfp_flags) in pnfs_alloc_commit_array() argument
102 p = kmalloc(struct_size(p, buckets, n), gfp_flags); in pnfs_alloc_commit_array()
703 nfs4_pnfs_remotestr(struct list_head *dsaddrs, gfp_t gfp_flags) in nfs4_pnfs_remotestr() argument
715 remotestr = kzalloc(len, gfp_flags); in nfs4_pnfs_remotestr()
752 nfs4_pnfs_ds_add(struct list_head *dsaddrs, gfp_t gfp_flags) in nfs4_pnfs_ds_add() argument
762 ds = kzalloc(sizeof(*ds), gfp_flags); in nfs4_pnfs_ds_add()
767 remotestr = nfs4_pnfs_remotestr(dsaddrs, gfp_flags); in nfs4_pnfs_ds_add()
1019 nfs4_decode_mp_ds_addr(struct net *net, struct xdr_stream *xdr, gfp_t gfp_flags) in nfs4_decode_mp_ds_addr() argument
1043 netid = kmalloc(nlen+1, gfp_flags); in nfs4_decode_mp_ds_addr()
1066 buf = kmalloc(rlen + 1, gfp_flags); in nfs4_decode_mp_ds_addr()
[all …]
Dpnfs.h137 struct pnfs_layout_hdr * (*alloc_layout_hdr) (struct inode *inode, gfp_t gfp_flags);
140 … (*alloc_lseg) (struct pnfs_layout_hdr *layoutid, struct nfs4_layoutget_res *lgr, gfp_t gfp_flags);
167 gfp_t gfp_flags);
323 gfp_t gfp_flags);
380 struct pnfs_commit_array *pnfs_alloc_commit_array(size_t n, gfp_t gfp_flags);
409 gfp_t gfp_flags);
416 gfp_t gfp_flags);
916 int pnfs_report_layoutstat(struct inode *inode, gfp_t gfp_flags);
919 pnfs_report_layoutstat(struct inode *inode, gfp_t gfp_flags) in pnfs_report_layoutstat() argument
Dpnfs.c270 pnfs_alloc_layout_hdr(struct inode *ino, gfp_t gfp_flags) in pnfs_alloc_layout_hdr() argument
273 return ld->alloc_layout_hdr(ino, gfp_flags); in pnfs_alloc_layout_hdr()
1060 static struct page **nfs4_alloc_pages(size_t size, gfp_t gfp_flags) in nfs4_alloc_pages() argument
1065 pages = kmalloc_array(size, sizeof(struct page *), gfp_flags); in nfs4_alloc_pages()
1072 pages[i] = alloc_page(gfp_flags); in nfs4_alloc_pages()
1088 gfp_t gfp_flags) in pnfs_alloc_init_layoutget_args() argument
1097 lgp = kzalloc(sizeof(*lgp), gfp_flags); in pnfs_alloc_init_layoutget_args()
1107 lgp->args.layout.pages = nfs4_alloc_pages(max_pages, gfp_flags); in pnfs_alloc_init_layoutget_args()
1137 lgp->gfp_flags = gfp_flags; in pnfs_alloc_init_layoutget_args()
1728 gfp_t gfp_flags) in alloc_init_layout_hdr() argument
[all …]
Dnfs4state.c497 gfp_t gfp_flags) in nfs4_alloc_state_owner() argument
501 sp = kzalloc(sizeof(*sp), gfp_flags); in nfs4_alloc_state_owner()
505 gfp_flags); in nfs4_alloc_state_owner()
580 gfp_t gfp_flags) in nfs4_get_state_owner() argument
590 new = nfs4_alloc_state_owner(server, cred, gfp_flags); in nfs4_get_state_owner()
Dpagelist.c904 gfp_t gfp_flags = nfs_io_gfp_mask(); in nfs_generic_pgio() local
912 pg_array->pagevec = kcalloc(pagecount, sizeof(struct page *), gfp_flags); in nfs_generic_pgio()
Dnfs42proc.c850 nfs42_alloc_layouterror_data(struct pnfs_layout_segment *lseg, gfp_t gfp_flags) in nfs42_alloc_layouterror_data() argument
855 data = kzalloc(sizeof(*data), gfp_flags); in nfs42_alloc_layouterror_data()
Dwrite.c116 static struct nfs_io_completion *nfs_io_completion_alloc(gfp_t gfp_flags) in nfs_io_completion_alloc() argument
118 return kmalloc(sizeof(struct nfs_io_completion), gfp_flags); in nfs_io_completion_alloc()
/fs/ext4/
Dpage-io.c516 gfp_t gfp_flags = GFP_NOFS; in ext4_bio_write_page() local
525 gfp_flags = GFP_NOWAIT | __GFP_NOWARN; in ext4_bio_write_page()
528 0, gfp_flags); in ext4_bio_write_page()
533 gfp_flags = GFP_NOFS; in ext4_bio_write_page()
537 gfp_flags |= __GFP_NOFAIL; in ext4_bio_write_page()
Dextents.c534 gfp_t gfp_flags = __GFP_MOVABLE | GFP_NOFS; in __read_extent_tree_block() local
538 gfp_flags |= __GFP_NOFAIL; in __read_extent_tree_block()
541 bh = sb_getblk_gfp(inode->i_sb, pblk, gfp_flags); in __read_extent_tree_block()
883 gfp_t gfp_flags = GFP_NOFS; in ext4_find_extent() local
886 gfp_flags |= __GFP_NOFAIL; in ext4_find_extent()
907 gfp_flags); in ext4_find_extent()
1058 gfp_t gfp_flags = GFP_NOFS; in ext4_ext_split() local
1063 gfp_flags |= __GFP_NOFAIL; in ext4_ext_split()
1098 ablocks = kcalloc(depth, sizeof(ext4_fsblk_t), gfp_flags); in ext4_ext_split()
/fs/
Dmpage.c109 gfp_t gfp_flags) in mpage_alloc() argument
114 gfp_flags &= GFP_KERNEL; in mpage_alloc()
115 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
119 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
/fs/nfs/blocklayout/
Dblocklayout.c483 gfp_t gfp_flags, bool is_scsi_layout) in __bl_alloc_layout_hdr() argument
488 bl = kzalloc(sizeof(*bl), gfp_flags); in __bl_alloc_layout_hdr()
501 gfp_t gfp_flags) in bl_alloc_layout_hdr() argument
503 return __bl_alloc_layout_hdr(inode, gfp_flags, false); in bl_alloc_layout_hdr()
507 gfp_t gfp_flags) in sl_alloc_layout_hdr() argument
509 return __bl_alloc_layout_hdr(inode, gfp_flags, true); in sl_alloc_layout_hdr()
/fs/afs/
Dfile.c23 static int afs_releasepage(struct page *page, gfp_t gfp_flags);
693 static int afs_releasepage(struct page *page, gfp_t gfp_flags) in afs_releasepage() argument
700 gfp_flags); in afs_releasepage()
705 if (!fscache_maybe_release_page(vnode->cache, page, gfp_flags)) { in afs_releasepage()
/fs/verity/
Dhash_algs.c124 gfp_t gfp_flags) in fsverity_alloc_hash_request() argument
126 struct ahash_request *req = mempool_alloc(&alg->req_pool, gfp_flags); in fsverity_alloc_hash_request()
Dfsverity_private.h93 gfp_t gfp_flags);
/fs/erofs/
Dzdata.c1017 gfp_t gfp_flags = GFP_KERNEL; in z_erofs_decompress_pcluster() local
1020 gfp_flags |= __GFP_NOFAIL; in z_erofs_decompress_pcluster()
1023 gfp_flags); in z_erofs_decompress_pcluster()
/fs/fuse/
Dfuse_i.h1036 gfp_t gfp_flags);

12