Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 25 of 50) sorted by relevance

12

/fs/xfs/libxfs/
Dxfs_dir2_sf.c63 xfs_inode_t *dp, /* incore inode pointer */ in xfs_dir2_block_sfsize() argument
83 mp = dp->i_mount; in xfs_dir2_block_sfsize()
135 if (size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_block_sfsize()
143 dp->d_ops->sf_put_parent_ino(sfhp, parent); in xfs_dir2_block_sfsize()
161 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_sf() local
174 dp = args->dp; in xfs_dir2_block_to_sf()
175 mp = dp->i_mount; in xfs_dir2_block_to_sf()
196 ptr = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_block_to_sf()
217 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf()
224 dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf()
[all …]
Dxfs_dir2_node.c56 #define xfs_dir3_leaf_check(dp, bp) \ argument
58 if (!xfs_dir3_leafn_check((dp), (bp))) \
64 struct xfs_inode *dp, in xfs_dir3_leafn_check() argument
70 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check()
79 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check()
82 #define xfs_dir3_leaf_check(dp, bp) argument
161 struct xfs_inode *dp, in xfs_dir3_free_header_check() argument
165 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_header_check()
169 maxbests = dp->d_ops->free_max_bests(mp->m_dir_geo); in xfs_dir3_free_header_check()
198 struct xfs_inode *dp, in __xfs_dir3_free_read() argument
[all …]
Dxfs_dir2.c184 xfs_inode_t *dp) in xfs_dir_isempty() argument
188 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty()
189 if (dp->i_d.di_size == 0) /* might happen during shutdown. */ in xfs_dir_isempty()
191 if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) in xfs_dir_isempty()
193 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
236 xfs_inode_t *dp, in xfs_dir_init() argument
242 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init()
251 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
252 args->dp = dp; in xfs_dir_init()
266 xfs_inode_t *dp, in xfs_dir_createname() argument
[all …]
Dxfs_attr.c80 struct xfs_inode *dp, in xfs_attr_args_init() argument
89 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init()
91 args->dp = dp; in xfs_attr_args_init()
178 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_calc_size()
208 struct xfs_inode *dp, in xfs_attr_set() argument
214 struct xfs_mount *mp = dp->i_mount; in xfs_attr_set()
225 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_set()
228 error = xfs_attr_args_init(&args, dp, name, flags); in xfs_attr_set()
239 error = xfs_qm_dqattach(dp, 0); in xfs_attr_set()
247 if (XFS_IFORK_Q(dp) == 0) { in xfs_attr_set()
[all …]
Dxfs_dir2_block.c134 struct xfs_inode *dp, in xfs_dir3_block_read() argument
137 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read()
140 err = xfs_da_read_buf(tp, dp, mp->m_dir_geo->datablk, -1, bpp, in xfs_dir3_block_read()
152 struct xfs_inode *dp) in xfs_dir3_block_init() argument
163 hdr3->owner = cpu_to_be64(dp->i_ino); in xfs_dir3_block_init()
173 struct xfs_inode *dp, in xfs_dir2_block_need_space() argument
189 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_need_space()
328 xfs_dir2_data_freescan(args->dp, hdr, needlog); in xfs_dir2_block_compact()
344 xfs_inode_t *dp; /* directory inode */ in xfs_dir2_block_addname() local
364 dp = args->dp; in xfs_dir2_block_addname()
[all …]
Dxfs_dir2_leaf.c53 #define xfs_dir3_leaf_check(dp, bp) \ argument
55 if (!xfs_dir3_leaf1_check((dp), (bp))) \
61 struct xfs_inode *dp, in xfs_dir3_leaf1_check() argument
67 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
76 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
79 #define xfs_dir3_leaf_check(dp, bp) argument
85 struct xfs_inode *dp, in xfs_dir3_leaf_check_int() argument
101 ops = xfs_dir_get_ops(mp, dp); in xfs_dir3_leaf_check_int()
262 struct xfs_inode *dp, in xfs_dir3_leaf_read() argument
269 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leaf_read()
[all …]
Dxfs_da_btree.c256 struct xfs_inode *dp, in xfs_da3_node_read() argument
264 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read()
314 struct xfs_inode *dp = args->dp; in xfs_da3_node_create() local
319 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create()
332 hdr3->info.owner = cpu_to_be64(args->dp->i_ino); in xfs_da3_node_create()
339 dp->d_ops->node_hdr_to_disk(node, &ichdr); in xfs_da3_node_create()
341 XFS_DA_LOGRANGE(node, &node->hdr, dp->d_ops->node_hdr_size)); in xfs_da3_node_create()
518 struct xfs_inode *dp; in xfs_da3_root_split() local
537 dp = args->dp; in xfs_da3_root_split()
539 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da3_root_split()
[all …]
Dxfs_dir2_priv.h31 extern int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp,
42 #define xfs_dir3_data_check(dp,bp) __xfs_dir3_data_check(dp, bp); argument
44 #define xfs_dir3_data_check(dp,bp) argument
47 extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp);
48 extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp,
50 extern int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno,
61 extern int xfs_dir3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
63 extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp,
92 extern bool xfs_dir3_leaf_check_int(struct xfs_mount *mp, struct xfs_inode *dp,
98 extern xfs_dahash_t xfs_dir2_leaf_lasthash(struct xfs_inode *dp,
[all …]
Dxfs_dir2.h117 xfs_dir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
119 xfs_nondir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
128 extern int xfs_dir_isempty(struct xfs_inode *dp);
129 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp,
131 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp,
135 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp,
138 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp,
142 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp,
146 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
165 extern void xfs_dir2_data_freescan(struct xfs_inode *dp,
[all …]
Dxfs_attr_leaf.c345 struct xfs_inode *dp, in xfs_attr3_leaf_read() argument
352 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_attr3_leaf_read()
389 xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes) in xfs_attr_shortform_bytesfit() argument
395 xfs_mount_t *mp = dp->i_mount; in xfs_attr_shortform_bytesfit()
398 offset = (XFS_LITINO(mp, dp->i_d.di_version) - bytes) >> 3; in xfs_attr_shortform_bytesfit()
400 switch (dp->i_d.di_format) { in xfs_attr_shortform_bytesfit()
419 if (bytes <= XFS_IFORK_ASIZE(dp)) in xfs_attr_shortform_bytesfit()
420 return dp->i_d.di_forkoff; in xfs_attr_shortform_bytesfit()
430 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
432 switch (dp->i_d.di_format) { in xfs_attr_shortform_bytesfit()
[all …]
Dxfs_attr_remote.c355 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get()
374 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get()
396 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get()
420 struct xfs_inode *dp = args->dp; in xfs_attr_rmtval_set() local
421 struct xfs_mount *mp = dp->i_mount; in xfs_attr_rmtval_set()
441 error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, in xfs_attr_rmtval_set()
467 error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
472 xfs_defer_ijoin(args->dfops, dp); in xfs_attr_rmtval_set()
486 error = xfs_trans_roll_inode(&args->trans, dp); in xfs_attr_rmtval_set()
509 error = xfs_bmapi_read(dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
[all …]
Dxfs_dir2_data.c43 struct xfs_inode *dp, /* incore inode pointer */ in __xfs_dir3_data_check() argument
74 ops = xfs_dir_get_ops(mp, dp); in __xfs_dir3_data_check()
327 struct xfs_inode *dp, in xfs_dir3_data_read() argument
334 err = xfs_da_read_buf(tp, dp, bno, mapped_bno, bpp, in xfs_dir3_data_read()
343 struct xfs_inode *dp, in xfs_dir3_data_readahead() argument
347 return xfs_da_reada_buf(dp, bno, mapped_bno, in xfs_dir3_data_readahead()
574 struct xfs_inode *dp, in xfs_dir2_data_freescan() argument
578 return xfs_dir2_data_freescan_int(dp->i_mount->m_dir_geo, dp->d_ops, in xfs_dir2_data_freescan()
594 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir3_data_init() local
603 dp = args->dp; in xfs_dir3_data_init()
[all …]
/fs/xfs/
Dxfs_attr_inactive.c49 struct xfs_inode *dp, in xfs_attr3_leaf_freextent() argument
73 error = xfs_bmapi_read(dp, (xfs_fileoff_t)tblkno, tblkcnt, in xfs_attr3_leaf_freextent()
87 dblkno = XFS_FSB_TO_DADDR(dp->i_mount, in xfs_attr3_leaf_freextent()
89 dblkcnt = XFS_FSB_TO_BB(dp->i_mount, in xfs_attr3_leaf_freextent()
92 dp->i_mount->m_ddev_targp, in xfs_attr3_leaf_freextent()
100 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_leaf_freextent()
121 struct xfs_inode *dp, in xfs_attr3_leaf_inactive() argument
179 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
192 tmp = xfs_attr3_leaf_freextent(trans, dp, in xfs_attr3_leaf_inactive()
210 struct xfs_inode *dp, in xfs_attr3_node_inactive() argument
[all …]
Dxfs_dir2_readdir.c64 struct xfs_inode *dp = args->dp; /* incore directory inode */ in xfs_dir2_sf_getdents() local
73 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir2_sf_getdents()
74 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_getdents()
75 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_getdents()
77 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
92 dp->d_ops->data_dot_offset); in xfs_dir2_sf_getdents()
94 dp->d_ops->data_dotdot_offset); in xfs_dir2_sf_getdents()
101 if (!dir_emit(ctx, ".", 1, dp->i_ino, DT_DIR)) in xfs_dir2_sf_getdents()
109 ino = dp->d_ops->sf_get_parent_ino(sfp); in xfs_dir2_sf_getdents()
126 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
[all …]
Dxfs_attr_list.c75 xfs_inode_t *dp; in xfs_attr_shortform_list() local
79 dp = context->dp; in xfs_attr_shortform_list()
80 ASSERT(dp != NULL); in xfs_attr_shortform_list()
81 ASSERT(dp->i_afp != NULL); in xfs_attr_shortform_list()
82 sf = (xfs_attr_shortform_t *)dp->i_afp->if_u1.if_data; in xfs_attr_shortform_list()
102 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
139 ((char *)sfe >= ((char *)sf + dp->i_afp->if_bytes)))) { in xfs_attr_shortform_list()
142 context->dp->i_mount, sfe); in xfs_attr_shortform_list()
218 struct xfs_inode *dp = context->dp; in xfs_attr_node_list() local
219 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list()
[all …]
Dxfs_symlink.c167 struct xfs_inode *dp, in xfs_symlink() argument
173 struct xfs_mount *mp = dp->i_mount; in xfs_symlink()
198 trace_xfs_symlink(dp, link_name); in xfs_symlink()
211 prid = xfs_get_initial_prid(dp); in xfs_symlink()
216 error = xfs_qm_vop_dqalloc(dp, in xfs_symlink()
228 if (pathlen <= XFS_LITINO(mp, dp->i_d.di_version)) in xfs_symlink()
243 xfs_ilock(dp, XFS_ILOCK_EXCL | XFS_ILOCK_PARENT); in xfs_symlink()
249 if (dp->i_d.di_flags & XFS_DIFLAG_NOSYMLINKS) { in xfs_symlink()
266 error = xfs_dir_canenter(tp, dp, link_name); in xfs_symlink()
279 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, in xfs_symlink()
[all …]
Dxfs_attr.h121 struct xfs_inode *dp; /* inode */ member
143 int xfs_attr_inactive(struct xfs_inode *dp);
150 int xfs_attr_set(struct xfs_inode *dp, const unsigned char *name,
152 int xfs_attr_remove(struct xfs_inode *dp, const unsigned char *name, int flags);
153 int xfs_attr_list(struct xfs_inode *dp, char *buffer, int bufsize,
Dxfs_inode.c702 xfs_inode_t *dp, in xfs_lookup() argument
710 trace_xfs_lookup(dp, name); in xfs_lookup()
712 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_lookup()
715 error = xfs_dir_lookup(NULL, dp, name, &inum, ci_name); in xfs_lookup()
719 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup()
974 xfs_inode_t *dp, /* directory within whose allocate in xfs_dir_ialloc() argument
1011 code = xfs_ialloc(tp, dp, mode, nlink, rdev, prid, okalloc, in xfs_dir_ialloc()
1083 code = xfs_ialloc(tp, dp, mode, nlink, rdev, prid, in xfs_dir_ialloc()
1147 xfs_inode_t *dp, in xfs_create() argument
1154 struct xfs_mount *mp = dp->i_mount; in xfs_create()
[all …]
/fs/cifs/
Dcifs_spnego.c104 char *description, *dp; in cifs_get_spnego_key() local
128 dp = description; in cifs_get_spnego_key()
131 sprintf(dp, "ver=0x%x;host=%s;", CIFS_SPNEGO_UPCALL_VERSION, in cifs_get_spnego_key()
133 dp = description + strlen(description); in cifs_get_spnego_key()
137 sprintf(dp, "ip4=%pI4", &sa->sin_addr); in cifs_get_spnego_key()
139 sprintf(dp, "ip6=%pI6", &sa6->sin6_addr); in cifs_get_spnego_key()
143 dp = description + strlen(description); in cifs_get_spnego_key()
147 sprintf(dp, ";sec=krb5"); in cifs_get_spnego_key()
149 sprintf(dp, ";sec=mskrb5"); in cifs_get_spnego_key()
152 sprintf(dp, ";sec=krb5"); in cifs_get_spnego_key()
[all …]
/fs/jfs/
Djfs_dmap.c77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
93 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
104 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
106 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
114 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
116 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
117 static int dbInitDmapTree(struct dmap * dp);
[all …]
/fs/quota/
Dquota_v2.c26 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot);
27 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp);
28 static int v2r0_is_id(void *dp, struct dquot *dquot);
29 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot);
30 static void v2r1_disk2memdqb(struct dquot *dquot, void *dp);
31 static int v2r1_is_id(void *dp, struct dquot *dquot);
197 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp) in v2r0_disk2memdqb() argument
199 struct v2r0_disk_dqblk *d = dp, empty; in v2r0_disk2memdqb()
213 if (!memcmp(&empty, dp, sizeof(struct v2r0_disk_dqblk))) in v2r0_disk2memdqb()
217 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot) in v2r0_mem2diskdqb() argument
[all …]
/fs/
Dbinfmt_misc.c549 char *dp = page; in entry_status() local
560 dp += sprintf(dp, "%s\ninterpreter %s\n", status, e->interpreter); in entry_status()
563 dp += sprintf(dp, "flags: "); in entry_status()
565 *dp++ = 'P'; in entry_status()
567 *dp++ = 'O'; in entry_status()
569 *dp++ = 'C'; in entry_status()
571 *dp++ = 'F'; in entry_status()
572 *dp++ = '\n'; in entry_status()
575 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
577 dp += sprintf(dp, "offset %i\nmagic ", e->offset); in entry_status()
[all …]
/fs/freevxfs/
Dvxfs_lookup.c81 vxfs_find_entry(struct inode *ip, struct dentry *dp, struct page **ppp) in vxfs_find_entry() argument
84 const char *name = dp->d_name.name; in vxfs_find_entry()
85 int namelen = dp->d_name.len; in vxfs_find_entry()
156 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument
162 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name()
187 vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags) in vxfs_lookup() argument
192 if (dp->d_name.len > VXFS_NAMELEN) in vxfs_lookup()
195 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup()
201 d_add(dp, ip); in vxfs_lookup()
/fs/nfsd/
Dnfs4state.c807 struct nfs4_delegation *dp; in alloc_init_deleg() local
816 dp = delegstateid(nfs4_alloc_stid(clp, deleg_slab, nfs4_free_deleg)); in alloc_init_deleg()
817 if (dp == NULL) in alloc_init_deleg()
825 dp->dl_stid.sc_stateid.si_generation = 1; in alloc_init_deleg()
826 INIT_LIST_HEAD(&dp->dl_perfile); in alloc_init_deleg()
827 INIT_LIST_HEAD(&dp->dl_perclnt); in alloc_init_deleg()
828 INIT_LIST_HEAD(&dp->dl_recall_lru); in alloc_init_deleg()
829 dp->dl_clnt_odstate = odstate; in alloc_init_deleg()
831 dp->dl_type = NFS4_OPEN_DELEGATE_READ; in alloc_init_deleg()
832 dp->dl_retries = 1; in alloc_init_deleg()
[all …]
/fs/openpromfs/
Dinode.c182 struct device_node *dp, *child; in openpromfs_lookup() local
193 dp = oi->u.node; in openpromfs_lookup()
200 child = dp->child; in openpromfs_lookup()
214 prop = dp->properties; in openpromfs_lookup()
248 if (!strcmp(dp->name, "options") && (len == 17) && in openpromfs_lookup()
267 struct device_node *dp = oi->u.node; in openpromfs_readdir() local
281 (dp->parent == NULL ? in openpromfs_readdir()
283 dp->parent->unique_id), DT_DIR)) in openpromfs_readdir()
290 child = dp->child; in openpromfs_readdir()
307 prop = dp->properties; in openpromfs_readdir()

12