Home
last modified time | relevance | path

Searched refs:create (Results 1 – 25 of 132) sorted by relevance

123456

/fs/ocfs2/dlm/
Ddlmlock.c287 struct dlm_create_lock create; in dlm_send_remote_lock_request() local
291 memset(&create, 0, sizeof(create)); in dlm_send_remote_lock_request()
292 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
293 create.requested_type = lock->ml.type; in dlm_send_remote_lock_request()
294 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
295 create.namelen = res->lockname.len; in dlm_send_remote_lock_request()
296 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
297 memcpy(create.name, res->lockname.name, create.namelen); in dlm_send_remote_lock_request()
299 tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create, in dlm_send_remote_lock_request()
300 sizeof(create), res->owner, &status); in dlm_send_remote_lock_request()
[all …]
/fs/bfs/
Dfile.c65 struct buffer_head *bh_result, int create) in bfs_get_block() argument
74 if (!create) { in bfs_get_block()
77 create, (unsigned long)block, phys); in bfs_get_block()
89 create, (unsigned long)block, phys); in bfs_get_block()
108 create, (unsigned long)block, phys); in bfs_get_block()
136 create, (unsigned long)block, phys); in bfs_get_block()
/fs/nfs/
Dnfs3proc.c288 struct nfs3_createargs create; member
353 data->arg.create.fh = NFS_FH(dir); in nfs3_proc_create()
354 data->arg.create.name = dentry->d_name.name; in nfs3_proc_create()
355 data->arg.create.len = dentry->d_name.len; in nfs3_proc_create()
356 data->arg.create.sattr = sattr; in nfs3_proc_create()
358 data->arg.create.createmode = NFS3_CREATE_UNCHECKED; in nfs3_proc_create()
360 data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE; in nfs3_proc_create()
361 data->arg.create.verifier[0] = cpu_to_be32(jiffies); in nfs3_proc_create()
362 data->arg.create.verifier[1] = cpu_to_be32(current->pid); in nfs3_proc_create()
377 switch (data->arg.create.createmode) { in nfs3_proc_create()
[all …]
/fs/orangefs/
Dnamei.c39 new_op->upcall.req.create.parent_refn = parent->refn; in orangefs_create()
41 fill_default_sys_attrs(new_op->upcall.req.create.attributes, in orangefs_create()
44 strncpy(new_op->upcall.req.create.d_name, in orangefs_create()
53 &new_op->downcall.resp.create.refn.khandle, in orangefs_create()
54 new_op->downcall.resp.create.refn.fs_id, in orangefs_create()
61 ref = new_op->downcall.resp.create.refn; in orangefs_create()
435 .create = orangefs_create,
/fs/nfsd/
Dnfs4proc.c619 struct nfsd4_create *create = &u->create; in nfsd4_create() local
630 status = check_attr_support(rqstp, cstate, create->cr_bmval, in nfsd4_create()
635 current->fs->umask = create->cr_umask; in nfsd4_create()
636 switch (create->cr_type) { in nfsd4_create()
639 create->cr_name, create->cr_namelen, in nfsd4_create()
640 create->cr_data, &resfh); in nfsd4_create()
645 rdev = MKDEV(create->cr_specdata1, create->cr_specdata2); in nfsd4_create()
646 if (MAJOR(rdev) != create->cr_specdata1 || in nfsd4_create()
647 MINOR(rdev) != create->cr_specdata2) in nfsd4_create()
650 create->cr_name, create->cr_namelen, in nfsd4_create()
[all …]
Dnfs4xdr.c800 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) in nfsd4_decode_create() argument
804 if (xdr_stream_decode_u32(argp->xdr, &create->cr_type) < 0) in nfsd4_decode_create()
806 switch (create->cr_type) { in nfsd4_decode_create()
808 if (xdr_stream_decode_u32(argp->xdr, &create->cr_datalen) < 0) in nfsd4_decode_create()
810 p = xdr_inline_decode(argp->xdr, create->cr_datalen); in nfsd4_decode_create()
813 create->cr_data = svcxdr_dupstr(argp, p, create->cr_datalen); in nfsd4_decode_create()
814 if (!create->cr_data) in nfsd4_decode_create()
819 if (xdr_stream_decode_u32(argp->xdr, &create->cr_specdata1) < 0) in nfsd4_decode_create()
821 if (xdr_stream_decode_u32(argp->xdr, &create->cr_specdata2) < 0) in nfsd4_decode_create()
830 status = nfsd4_decode_component4(argp, &create->cr_name, in nfsd4_decode_create()
[all …]
/fs/jfs/
Dinode.c200 struct buffer_head *bh_result, int create) in jfs_get_block() argument
212 if (create) in jfs_get_block()
221 if (!create) in jfs_get_block()
249 if (!create) in jfs_get_block()
278 if (create) in jfs_get_block()
/fs/exfat/
Dinode.c106 unsigned int *clu, int create) in exfat_map_cluster() argument
124 if (!create && (num_to_be_allocated > 0)) { in exfat_map_cluster()
290 struct buffer_head *bh_result, int create) in exfat_get_block() argument
305 if (iblock >= last_block && !create) in exfat_get_block()
310 &cluster, create); in exfat_get_block()
331 create = 0; in exfat_get_block()
333 if (create || buffer_delay(bh_result)) { in exfat_get_block()
339 if (create) { in exfat_get_block()
/fs/nilfs2/
Dalloc.c197 int create, in nilfs_palloc_get_block() argument
217 ret = nilfs_mdt_get_block(inode, blkoff, create, init_block, bhp); in nilfs_palloc_get_block()
262 int create, struct buffer_head **bhp) in nilfs_palloc_get_desc_block() argument
268 create, nilfs_palloc_desc_block_init, in nilfs_palloc_get_desc_block()
281 int create, struct buffer_head **bhp) in nilfs_palloc_get_bitmap_block() argument
287 create, NULL, bhp, in nilfs_palloc_get_bitmap_block()
315 int create, struct buffer_head **bhp) in nilfs_palloc_get_entry_block() argument
321 create, NULL, bhp, in nilfs_palloc_get_entry_block()
Dsufile.c90 int create, struct buffer_head **bhp) in nilfs_sufile_get_segment_usage_block() argument
94 create, NULL, bhp); in nilfs_sufile_get_segment_usage_block()
157 int create, size_t *ndone, in nilfs_sufile_updatev() argument
191 ret = nilfs_mdt_get_block(sufile, blkoff, create, NULL, &bh); in nilfs_sufile_updatev()
207 ret = nilfs_mdt_get_block(sufile, blkoff, create, NULL, &bh); in nilfs_sufile_updatev()
224 int nilfs_sufile_update(struct inode *sufile, __u64 segnum, int create, in nilfs_sufile_update() argument
243 ret = nilfs_sufile_get_segment_usage_block(sufile, segnum, create, &bh); in nilfs_sufile_update()
Dcpfile.c136 int create, in nilfs_cpfile_get_checkpoint_block() argument
141 create, nilfs_cpfile_block_init, bhp); in nilfs_cpfile_get_checkpoint_block()
216 int create, in nilfs_cpfile_get_checkpoint() argument
227 (cno < nilfs_mdt_cno(cpfile) && create))) in nilfs_cpfile_get_checkpoint()
235 ret = nilfs_cpfile_get_checkpoint_block(cpfile, cno, create, &cp_bh); in nilfs_cpfile_get_checkpoint()
241 if (!create) { in nilfs_cpfile_get_checkpoint()
Dmdt.c241 int nilfs_mdt_get_block(struct inode *inode, unsigned long blkoff, int create, in nilfs_mdt_get_block() argument
250 ret = nilfs_mdt_read_block(inode, blkoff, !create, out_bh); in nilfs_mdt_get_block()
251 if (!create || ret != -ENOENT) in nilfs_mdt_get_block()
/fs/efs/
Dfile.c14 struct buffer_head *bh_result, int create) in efs_get_block() argument
19 if (create) in efs_get_block()
/fs/minix/
Ditree_v1.c54 struct buffer_head *bh_result, int create) in V1_minix_get_block() argument
56 return get_block(inode, block, bh_result, create); in V1_minix_get_block()
Ditree_v2.c62 struct buffer_head *bh_result, int create) in V2_minix_get_block() argument
64 return get_block(inode, block, bh_result, create); in V2_minix_get_block()
/fs/fat/
Dcache.c334 sector_t *last_block, int create) in is_exceed_eof() argument
342 if (!create) in is_exceed_eof()
359 unsigned long *mapped_blocks, int create, bool from_bmap) in fat_bmap() argument
375 if (is_exceed_eof(inode, sector, &last_block, create)) in fat_bmap()
Dinode.c121 struct buffer_head *bh_result, int create) in __fat_get_block() argument
129 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create, false); in __fat_get_block()
137 if (!create) in __fat_get_block()
165 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create, false); in __fat_get_block()
184 struct buffer_head *bh_result, int create) in fat_get_block() argument
190 err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create); in fat_get_block()
296 struct buffer_head *bh_result, int create) in fat_get_block_bmap() argument
304 BUG_ON(create != 0); in fat_get_block_bmap()
306 err = fat_bmap(inode, iblock, &bmap, &mapped_blocks, create, true); in fat_get_block_bmap()
/fs/ntfs3/
Dinode.c545 struct buffer_head *bh, int create, in ntfs_get_block_vbo() argument
565 if (!create && vbo >= ni->i_valid) { in ntfs_get_block_vbo()
590 err = attr_data_get_block(ni, vcn, 1, &lcn, &len, create ? &new : NULL); in ntfs_get_block_vbo()
600 if (!create) { in ntfs_get_block_vbo()
626 } else if (create) { in ntfs_get_block_vbo()
687 struct buffer_head *bh_result, int create) in ntfs_get_block() argument
690 bh_result, create, GET_BLOCK_GENERAL); in ntfs_get_block()
694 struct buffer_head *bh_result, int create) in ntfs_get_block_bmap() argument
698 bh_result, create, GET_BLOCK_BMAP); in ntfs_get_block_bmap()
765 struct buffer_head *bh_result, int create) in ntfs_get_block_direct_IO_R() argument
[all …]
/fs/gfs2/
Dtrace_gfs2.h442 sector_t lblock, int create, int errno),
444 TP_ARGS(ip, bh, lblock, create, errno),
453 __field( int, create )
464 __entry->create = create;
474 __entry->state, __entry->create ? "create " : "nocreate",
/fs/affs/
Dfile.c296 affs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh_result, int create) in affs_get_block() argument
308 if (block > AFFS_I(inode)->i_blkcnt || !create) in affs_get_block()
311 create = 0; in affs_get_block()
323 if (create) { in affs_get_block()
466 affs_bread_ino(struct inode *inode, int block, int create) in affs_bread_ino() argument
472 err = affs_get_block(inode, block, &tmp_bh, create); in affs_bread_ino()
523 affs_do_readpage_ofs(struct page *page, unsigned to, int create) in affs_do_readpage_ofs() argument
542 bh = affs_bread_ino(inode, bidx, create); in affs_do_readpage_ofs()
/fs/hfsplus/
Dextents.c226 struct buffer_head *bh_result, int create) in hfsplus_get_block() argument
240 if (!create) in hfsplus_get_block()
250 create = 0; in hfsplus_get_block()
286 if (create) { in hfsplus_get_block()
292 if (create || was_dirty) in hfsplus_get_block()
/fs/ocfs2/
Daops.c41 struct buffer_head *bh_result, int create) in ocfs2_symlink_get_block() argument
53 (unsigned long long)iblock, bh_result, create); in ocfs2_symlink_get_block()
122 struct buffer_head *bh_result, int create) in ocfs2_lock_get_block() argument
128 ret = ocfs2_get_block(inode, iblock, bh_result, create); in ocfs2_lock_get_block()
135 struct buffer_head *bh_result, int create) in ocfs2_get_block() argument
144 (unsigned long long)iblock, bh_result, create); in ocfs2_get_block()
152 err = ocfs2_symlink_get_block(inode, iblock, bh_result, create); in ocfs2_get_block()
179 if (create && p_blkno == 0 && ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
209 if (create && (iblock >= past_eof)) in ocfs2_get_block()
2143 struct buffer_head *bh_result, int create) in ocfs2_dio_wr_get_block() argument
[all …]
/fs/hfs/
Dextent.c337 struct buffer_head *bh_result, int create) in hfs_get_block() argument
348 if (!create) in hfs_get_block()
358 create = 0; in hfs_get_block()
381 if (create) { in hfs_get_block()
/fs/afs/
Ddir.c62 .create = afs_create,
1359 op->create.reason); in afs_create_edit_dir()
1403 op->create.mode = S_IFDIR | mode; in afs_mkdir()
1404 op->create.reason = afs_edit_dir_for_mkdir; in afs_mkdir()
1707 op->create.mode = S_IFREG | mode; in afs_create()
1708 op->create.reason = afs_edit_dir_for_create; in afs_create()
1790 op->create.reason = afs_edit_dir_for_link; in afs_link()
1843 op->create.reason = afs_edit_dir_for_symlink; in afs_symlink()
1844 op->create.symlink = content; in afs_symlink()
/fs/adfs/
Dinode.c17 int create) in adfs_get_block() argument
19 if (!create) { in adfs_get_block()

123456