Home
last modified time | relevance | path

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

12345

/fs/ocfs2/dlm/
Ddlmlock.c305 struct dlm_create_lock create; in dlm_send_remote_lock_request() local
311 memset(&create, 0, sizeof(create)); in dlm_send_remote_lock_request()
312 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
313 create.requested_type = lock->ml.type; in dlm_send_remote_lock_request()
314 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
315 create.namelen = res->lockname.len; in dlm_send_remote_lock_request()
316 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
317 memcpy(create.name, res->lockname.name, create.namelen); in dlm_send_remote_lock_request()
319 tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create, in dlm_send_remote_lock_request()
320 sizeof(create), res->owner, &status); in dlm_send_remote_lock_request()
[all …]
/fs/nfsd/
Dnfs4proc.c360 struct nfsd4_create *create) in nfsd4_create() argument
375 switch (create->cr_type) { in nfsd4_create()
384 create->cr_linkname[create->cr_linklen] = 0; in nfsd4_create()
387 create->cr_name, create->cr_namelen, in nfsd4_create()
388 create->cr_linkname, create->cr_linklen, in nfsd4_create()
389 &resfh, &create->cr_iattr); in nfsd4_create()
393 rdev = MKDEV(create->cr_specdata1, create->cr_specdata2); in nfsd4_create()
394 if (MAJOR(rdev) != create->cr_specdata1 || in nfsd4_create()
395 MINOR(rdev) != create->cr_specdata2) in nfsd4_create()
398 create->cr_name, create->cr_namelen, in nfsd4_create()
[all …]
Dnfs4xdr.c463 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) in nfsd4_decode_create() argument
468 READ32(create->cr_type); in nfsd4_decode_create()
469 switch (create->cr_type) { in nfsd4_decode_create()
472 READ32(create->cr_linklen); in nfsd4_decode_create()
473 READ_BUF(create->cr_linklen); in nfsd4_decode_create()
474 SAVEMEM(create->cr_linkname, create->cr_linklen); in nfsd4_decode_create()
479 READ32(create->cr_specdata1); in nfsd4_decode_create()
480 READ32(create->cr_specdata2); in nfsd4_decode_create()
490 READ32(create->cr_namelen); in nfsd4_decode_create()
491 READ_BUF(create->cr_namelen); in nfsd4_decode_create()
[all …]
Dnfs3proc.c695 PROC(create, create, create, fhandle2, RC_REPLBUFF, ST+(1+FH+pAT)+WC),
696 PROC(mkdir, mkdir, create, fhandle2, RC_REPLBUFF, ST+(1+FH+pAT)+WC),
697 PROC(symlink, symlink, create, fhandle2, RC_REPLBUFF, ST+(1+FH+pAT)+WC),
698 PROC(mknod, mknod, create, fhandle2, RC_REPLBUFF, ST+(1+FH+pAT)+WC),
/fs/ext2/
Dxip.c33 __ext2_get_block(struct inode *inode, pgoff_t pgoff, int create, in __ext2_get_block() argument
40 rc = ext2_get_block(inode, pgoff, &tmp, create); in __ext2_get_block()
45 BUG_ON(create); in __ext2_get_block()
77 int ext2_get_xip_mem(struct address_space *mapping, pgoff_t pgoff, int create, in ext2_get_xip_mem() argument
84 rc = __ext2_get_block(mapping->host, pgoff, create, &block); in ext2_get_xip_mem()
/fs/bfs/
Dfile.c67 struct buffer_head *bh_result, int create) in bfs_get_block() argument
77 if (!create) { in bfs_get_block()
80 create, (unsigned long)block, phys); in bfs_get_block()
92 create, (unsigned long)block, phys); in bfs_get_block()
111 create, (unsigned long)block, phys); in bfs_get_block()
140 create, (unsigned long)block, phys); in bfs_get_block()
/fs/nfs/
Dnfs3proc.c256 struct nfs3_createargs create; member
319 data->arg.create.fh = NFS_FH(dir); in nfs3_proc_create()
320 data->arg.create.name = dentry->d_name.name; in nfs3_proc_create()
321 data->arg.create.len = dentry->d_name.len; in nfs3_proc_create()
322 data->arg.create.sattr = sattr; in nfs3_proc_create()
324 data->arg.create.createmode = NFS3_CREATE_UNCHECKED; in nfs3_proc_create()
326 data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE; in nfs3_proc_create()
327 data->arg.create.verifier[0] = jiffies; in nfs3_proc_create()
328 data->arg.create.verifier[1] = current->pid; in nfs3_proc_create()
340 switch (data->arg.create.createmode) { in nfs3_proc_create()
[all …]
/fs/jfs/
Dinode.c189 struct buffer_head *bh_result, int create) in jfs_get_block() argument
201 if (create) in jfs_get_block()
210 if (!create) in jfs_get_block()
238 if (!create) in jfs_get_block()
267 if (create) in jfs_get_block()
/fs/efs/
Dfile.c13 struct buffer_head *bh_result, int create) in efs_get_block() argument
18 if (create) in efs_get_block()
/fs/minix/
Ditree_v1.c53 struct buffer_head *bh_result, int create) in V1_minix_get_block() argument
55 return get_block(inode, block, bh_result, create); in V1_minix_get_block()
Ditree_v2.c59 struct buffer_head *bh_result, int create) in V2_minix_get_block() argument
61 return get_block(inode, block, bh_result, create); in V2_minix_get_block()
/fs/gfs2/
Dbmap.c360 static inline void bmap_lock(struct gfs2_inode *ip, int create) in bmap_lock() argument
362 if (create) in bmap_lock()
368 static inline void bmap_unlock(struct gfs2_inode *ip, int create) in bmap_unlock() argument
370 if (create) in bmap_unlock()
566 struct buffer_head *bh_map, int create) in gfs2_block_map() argument
585 bmap_lock(ip, create); in gfs2_block_map()
623 bmap_unlock(ip, create); in gfs2_block_map()
628 if (!create) { in gfs2_block_map()
646 int create = *new; in gfs2_extent_map() local
652 bh.b_size = 1 << (inode->i_blkbits + (create ? 0 : 5)); in gfs2_extent_map()
[all …]
Dmeta_io.c38 struct buffer_head *bh_result, int create) in aspace_get_block() argument
140 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() argument
154 if (create) { in gfs2_getbuf()
Dbmap.h48 int gfs2_block_map(struct inode *inode, sector_t lblock, struct buffer_head *bh, int create);
/fs/qnx4/
Dinode.c164 int create) in qnx4_getblk() argument
174 if (!create) { in qnx4_getblk()
195 struct buffer_head *qnx4_bread(struct inode *inode, int block, int create) in qnx4_bread() argument
199 bh = qnx4_getblk(inode, block, create); in qnx4_bread()
213 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create in qnx4_get_block() argument
223 } else if ( create ) { in qnx4_get_block()
/fs/xfs/linux-2.6/
Dxfs_aops.c1366 int create, in __xfs_get_blocks() argument
1380 if (!create && direct && offset >= i_size_read(inode)) in __xfs_get_blocks()
1384 create ? flags : BMAPI_READ, &iomap, &niomap); in __xfs_get_blocks()
1395 if (create || !(iomap.iomap_flags & IOMAP_UNWRITTEN)) { in __xfs_get_blocks()
1399 if (create && (iomap.iomap_flags & IOMAP_UNWRITTEN)) { in __xfs_get_blocks()
1421 if (create && in __xfs_get_blocks()
1429 if (create) { in __xfs_get_blocks()
1451 int create) in xfs_get_blocks() argument
1454 bh_result, create, 0, BMAPI_WRITE); in xfs_get_blocks()
1462 int create) in xfs_get_blocks_direct() argument
[all …]
/fs/ocfs2/
Daops.c51 struct buffer_head *bh_result, int create) in ocfs2_symlink_get_block() argument
62 (unsigned long long)iblock, bh_result, create); in ocfs2_symlink_get_block()
130 struct buffer_head *bh_result, int create) in ocfs2_get_block() argument
139 (unsigned long long)iblock, bh_result, create); in ocfs2_get_block()
147 err = ocfs2_symlink_get_block(inode, iblock, bh_result, create); in ocfs2_get_block()
174 if (create && p_blkno == 0 && ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
202 if (create && (iblock >= past_eof)) in ocfs2_get_block()
550 struct buffer_head *bh_result, int create) in ocfs2_direct_IO_get_blocks() argument
567 if (create && (iblock + max_blocks) > inode_blocks) { in ocfs2_direct_IO_get_blocks()
583 if (!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb)) && !p_blkno && create) { in ocfs2_direct_IO_get_blocks()
[all …]
/fs/hpfs/
Dfile.c61 …int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) in hpfs_get_block() argument
69 if (!create) return 0; in hpfs_get_block()
/fs/hfs/
Dextent.c320 struct buffer_head *bh_result, int create) in hfs_get_block() argument
331 if (block > HFS_I(inode)->fs_blocks || !create) in hfs_get_block()
339 create = 0; in hfs_get_block()
362 if (create) { in hfs_get_block()
/fs/hfsplus/
Dextents.c173 struct buffer_head *bh_result, int create) in hfsplus_get_block() argument
187 if (iblock > HFSPLUS_I(inode).fs_blocks || !create) in hfsplus_get_block()
195 create = 0; in hfsplus_get_block()
220 if (create) { in hfsplus_get_block()
/fs/ext4/
Dinode.c864 int create, int extend_disksize) in ext4_get_blocks_handle() argument
881 J_ASSERT(handle != NULL || create == 0); in ext4_get_blocks_handle()
910 if (!create || err == -EIO) in ext4_get_blocks_handle()
1067 int create, int extend_disksize, int flag) in ext4_get_blocks_wrap() argument
1088 if (!create) in ext4_get_blocks_wrap()
1123 bh, create, extend_disksize); in ext4_get_blocks_wrap()
1126 max_blocks, bh, create, extend_disksize); in ext4_get_blocks_wrap()
1158 struct buffer_head *bh_result, int create) in ext4_get_block() argument
1165 if (create && !handle) { in ext4_get_block()
1179 max_blocks, bh_result, create, 0, 0); in ext4_get_block()
[all …]
/fs/
Ddirect-io.c501 int create; in get_more_blocks() local
520 create = dio->rw & WRITE; in get_more_blocks()
524 create = 0; in get_more_blocks()
526 create = 0; in get_more_blocks()
536 map_bh, create); in get_more_blocks()
/fs/ext3/
Dinode.c791 int create, int extend_disksize) in ext3_get_blocks_handle() argument
806 J_ASSERT(handle != NULL || create == 0); in ext3_get_blocks_handle()
847 if (!create || err == -EIO) in ext3_get_blocks_handle()
956 struct buffer_head *bh_result, int create) in ext3_get_block() argument
962 if (create && !handle) { /* Direct IO write... */ in ext3_get_block()
975 max_blocks, bh_result, create, 0); in ext3_get_block()
997 long block, int create, int *errp) in ext3_getblk() argument
1002 J_ASSERT(handle != NULL || create == 0); in ext3_getblk()
1008 &dummy, create, 1); in ext3_getblk()
1027 J_ASSERT(create != 0); in ext3_getblk()
[all …]
/fs/affs/
Dfile.c322 affs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh_result, int create) in affs_get_block() argument
333 if (block > AFFS_I(inode)->i_blkcnt || !create) in affs_get_block()
336 create = 0; in affs_get_block()
348 if (create) { in affs_get_block()
430 affs_bread_ino(struct inode *inode, int block, int create) in affs_bread_ino() argument
436 err = affs_get_block(inode, block, &tmp_bh, create); in affs_bread_ino()
/fs/ufs/
Dinode.c416 …fs_getfrag_block(struct inode *inode, sector_t fragment, struct buffer_head *bh_result, int create) in ufs_getfrag_block() argument
425 if (!create) { in ufs_getfrag_block()
518 int create, int *err) in ufs_getfrag() argument
525 error = ufs_getfrag_block(inode, fragment, &dummy, create); in ufs_getfrag()
541 int create, int * err) in ufs_bread() argument
546 bh = ufs_getfrag (inode, fragment, create, err); in ufs_bread()

12345