Home
last modified time | relevance | path

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

123

/fs/xfs/libxfs/
Dxfs_dir2_sf.c48 xfs_inode_t *dp, /* incore inode pointer */ in xfs_dir2_block_sfsize() argument
68 mp = dp->i_mount; in xfs_dir2_block_sfsize()
120 if (size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_block_sfsize()
128 dp->d_ops->sf_put_parent_ino(sfhp, parent); in xfs_dir2_block_sfsize()
145 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_sf() local
158 dp = args->dp; in xfs_dir2_block_to_sf()
159 mp = dp->i_mount; in xfs_dir2_block_to_sf()
179 ptr = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_block_to_sf()
200 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf()
207 dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf()
[all …]
Dxfs_dir2.c171 xfs_inode_t *dp) in xfs_dir_isempty() argument
175 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty()
176 if (dp->i_d.di_size == 0) /* might happen during shutdown. */ in xfs_dir_isempty()
178 if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) in xfs_dir_isempty()
180 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
209 xfs_inode_t *dp, in xfs_dir_init() argument
215 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init()
224 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
225 args->dp = dp; in xfs_dir_init()
239 struct xfs_inode *dp, in xfs_dir_createname() argument
[all …]
Dxfs_dir2_node.c42 struct xfs_inode *dp, in xfs_dir3_leafn_check() argument
48 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check()
57 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check()
62 struct xfs_inode *dp, in xfs_dir3_leaf_check() argument
67 fa = xfs_dir3_leafn_check(dp, bp); in xfs_dir3_leaf_check()
70 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_leaf_check()
76 #define xfs_dir3_leaf_check(dp, bp) argument
158 struct xfs_inode *dp, in xfs_dir3_free_header_check() argument
162 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_header_check()
166 maxbests = dp->d_ops->free_max_bests(mp->m_dir_geo); in xfs_dir3_free_header_check()
[all …]
Dxfs_attr.c63 struct xfs_inode *dp, in xfs_attr_args_init() argument
72 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init()
74 args->dp = dp; in xfs_attr_args_init()
194 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_calc_size()
224 struct xfs_inode *dp, in xfs_attr_try_sf_addname() argument
228 struct xfs_mount *mp = dp->i_mount; in xfs_attr_try_sf_addname()
240 xfs_trans_ichgtime(args->trans, dp, XFS_ICHGTIME_CHG); in xfs_attr_try_sf_addname()
257 struct xfs_inode *dp = args->dp; in xfs_attr_set_args() local
265 if (dp->i_d.di_aformat == XFS_DINODE_FMT_LOCAL || in xfs_attr_set_args()
266 (dp->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS && in xfs_attr_set_args()
[all …]
Dxfs_dir2_block.c120 struct xfs_inode *dp, in xfs_dir3_block_read() argument
123 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read()
126 err = xfs_da_read_buf(tp, dp, mp->m_dir_geo->datablk, -1, bpp, in xfs_dir3_block_read()
138 struct xfs_inode *dp) in xfs_dir3_block_init() argument
149 hdr3->owner = cpu_to_be64(dp->i_ino); in xfs_dir3_block_init()
159 struct xfs_inode *dp, in xfs_dir2_block_need_space() argument
175 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_need_space()
314 xfs_dir2_data_freescan(args->dp, hdr, needlog); in xfs_dir2_block_compact()
330 xfs_inode_t *dp; /* directory inode */ in xfs_dir2_block_addname() local
350 dp = args->dp; in xfs_dir2_block_addname()
[all …]
Dxfs_dir2_leaf.c40 struct xfs_inode *dp, in xfs_dir3_leaf1_check() argument
46 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
55 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
60 struct xfs_inode *dp, in xfs_dir3_leaf_check() argument
65 fa = xfs_dir3_leaf1_check(dp, bp); in xfs_dir3_leaf_check()
68 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_leaf_check()
74 #define xfs_dir3_leaf_check(dp, bp) argument
80 struct xfs_inode *dp, in xfs_dir3_leaf_check_int() argument
96 ops = xfs_dir_get_ops(mp, dp); in xfs_dir3_leaf_check_int()
217 struct xfs_inode *dp, in xfs_dir3_leaf_read() argument
[all …]
Dxfs_da_btree.c281 struct xfs_inode *dp, in xfs_da3_node_read() argument
289 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read()
341 struct xfs_inode *dp = args->dp; in xfs_da3_node_create() local
346 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create()
359 hdr3->info.owner = cpu_to_be64(args->dp->i_ino); in xfs_da3_node_create()
366 dp->d_ops->node_hdr_to_disk(node, &ichdr); in xfs_da3_node_create()
368 XFS_DA_LOGRANGE(node, &node->hdr, dp->d_ops->node_hdr_size)); in xfs_da3_node_create()
550 struct xfs_inode *dp; in xfs_da3_root_split() local
569 dp = args->dp; in xfs_da3_root_split()
571 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da3_root_split()
[all …]
Dxfs_dir2_priv.h19 extern int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp,
30 extern void xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp);
32 #define xfs_dir3_data_check(dp,bp) argument
35 extern xfs_failaddr_t __xfs_dir3_data_check(struct xfs_inode *dp,
37 extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp,
39 extern int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno,
50 extern int xfs_dir3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
52 extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp,
82 struct xfs_inode *dp, struct xfs_dir3_icleaf_hdr *hdr,
88 extern xfs_dahash_t xfs_dir2_leaf_lasthash(struct xfs_inode *dp,
[all …]
Dxfs_dir2.h104 xfs_dir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
106 xfs_nondir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
115 extern int xfs_dir_isempty(struct xfs_inode *dp);
116 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp,
118 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp,
121 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp,
124 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp,
127 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp,
130 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
149 extern void xfs_dir2_data_freescan(struct xfs_inode *dp,
[all …]
Dxfs_attr_leaf.c368 struct xfs_inode *dp, in xfs_attr3_leaf_read() argument
375 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_attr3_leaf_read()
456 xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes) in xfs_attr_shortform_bytesfit() argument
462 xfs_mount_t *mp = dp->i_mount; in xfs_attr_shortform_bytesfit()
465 offset = (XFS_LITINO(mp, dp->i_d.di_version) - bytes) >> 3; in xfs_attr_shortform_bytesfit()
467 if (dp->i_d.di_format == XFS_DINODE_FMT_DEV) { in xfs_attr_shortform_bytesfit()
482 if (bytes <= XFS_IFORK_ASIZE(dp)) in xfs_attr_shortform_bytesfit()
483 return dp->i_d.di_forkoff; in xfs_attr_shortform_bytesfit()
493 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
495 switch (dp->i_d.di_format) { in xfs_attr_shortform_bytesfit()
[all …]
Dxfs_dir2_data.c33 struct xfs_inode *dp, /* incore inode pointer */ in __xfs_dir3_data_check() argument
63 ops = xfs_dir_get_ops(mp, dp); in __xfs_dir3_data_check()
69 if ((dp && !S_ISDIR(VFS_I(dp)->i_mode)) || in __xfs_dir3_data_check()
229 struct xfs_inode *dp, in xfs_dir3_data_check() argument
234 fa = __xfs_dir3_data_check(dp, bp); in xfs_dir3_data_check()
237 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_data_check()
355 struct xfs_inode *dp, in xfs_dir3_data_read() argument
362 err = xfs_da_read_buf(tp, dp, bno, mapped_bno, bpp, in xfs_dir3_data_read()
371 struct xfs_inode *dp, in xfs_dir3_data_readahead() argument
375 return xfs_da_reada_buf(dp, bno, mapped_bno, in xfs_dir3_data_readahead()
[all …]
Dxfs_attr_remote.c369 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get()
388 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get()
410 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get()
434 struct xfs_inode *dp = args->dp; in xfs_attr_rmtval_set() local
435 struct xfs_mount *mp = dp->i_mount; in xfs_attr_rmtval_set()
455 error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, in xfs_attr_rmtval_set()
480 error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
498 error = xfs_trans_roll_inode(&args->trans, dp); in xfs_attr_rmtval_set()
520 error = xfs_bmapi_read(dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
537 xfs_attr_rmtval_copyin(mp, bp, args->dp->i_ino, &offset, in xfs_attr_rmtval_set()
[all …]
Dxfs_attr.h114 struct xfs_inode *dp; /* inode */ member
142 int xfs_attr_inactive(struct xfs_inode *dp);
149 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);
154 int xfs_attr_list(struct xfs_inode *dp, char *buffer, int bufsize,
/fs/xfs/
Dxfs_attr_inactive.c33 struct xfs_inode *dp, in xfs_attr3_leaf_freextent() argument
57 error = xfs_bmapi_read(dp, (xfs_fileoff_t)tblkno, tblkcnt, in xfs_attr3_leaf_freextent()
71 dblkno = XFS_FSB_TO_DADDR(dp->i_mount, in xfs_attr3_leaf_freextent()
73 dblkcnt = XFS_FSB_TO_BB(dp->i_mount, in xfs_attr3_leaf_freextent()
76 dp->i_mount->m_ddev_targp, in xfs_attr3_leaf_freextent()
84 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_leaf_freextent()
105 struct xfs_inode *dp, in xfs_attr3_leaf_inactive() argument
163 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
176 tmp = xfs_attr3_leaf_freextent(trans, dp, in xfs_attr3_leaf_inactive()
194 struct xfs_inode *dp, in xfs_attr3_node_inactive() argument
[all …]
Dxfs_dir2_readdir.c49 struct xfs_inode *dp = args->dp; /* incore directory inode */ in xfs_dir2_sf_getdents() local
58 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir2_sf_getdents()
59 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_getdents()
60 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_getdents()
62 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
77 dp->d_ops->data_dot_offset); in xfs_dir2_sf_getdents()
79 dp->d_ops->data_dotdot_offset); in xfs_dir2_sf_getdents()
86 if (!dir_emit(ctx, ".", 1, dp->i_ino, DT_DIR)) in xfs_dir2_sf_getdents()
94 ino = dp->d_ops->sf_get_parent_ino(sfp); in xfs_dir2_sf_getdents()
111 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
[all …]
Dxfs_attr_list.c58 xfs_inode_t *dp; in xfs_attr_shortform_list() local
62 dp = context->dp; in xfs_attr_shortform_list()
63 ASSERT(dp != NULL); in xfs_attr_shortform_list()
64 ASSERT(dp->i_afp != NULL); in xfs_attr_shortform_list()
65 sf = (xfs_attr_shortform_t *)dp->i_afp->if_u1.if_data; in xfs_attr_shortform_list()
85 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
122 ((char *)sfe >= ((char *)sf + dp->i_afp->if_bytes)))) { in xfs_attr_shortform_list()
125 context->dp->i_mount, sfe, in xfs_attr_shortform_list()
204 struct xfs_inode *dp = context->dp; in xfs_attr_node_list_lookup() local
205 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list_lookup()
[all …]
Dxfs_symlink.c146 struct xfs_inode *dp, in xfs_symlink() argument
152 struct xfs_mount *mp = dp->i_mount; in xfs_symlink()
175 trace_xfs_symlink(dp, link_name); in xfs_symlink()
189 prid = xfs_get_initial_prid(dp); in xfs_symlink()
194 error = xfs_qm_vop_dqalloc(dp, in xfs_symlink()
206 if (pathlen <= XFS_LITINO(mp, dp->i_d.di_version)) in xfs_symlink()
216 xfs_ilock(dp, XFS_ILOCK_EXCL | XFS_ILOCK_PARENT); in xfs_symlink()
222 if (dp->i_d.di_flags & XFS_DIFLAG_NOSYMLINKS) { in xfs_symlink()
238 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, in xfs_symlink()
250 xfs_trans_ijoin(tp, dp, XFS_ILOCK_EXCL); in xfs_symlink()
[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.c64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
91 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
93 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
101 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
103 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
104 static int dbInitDmapTree(struct dmap * dp);
[all …]
/fs/quota/
Dquota_v2.c27 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot);
28 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp);
29 static int v2r0_is_id(void *dp, struct dquot *dquot);
30 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot);
31 static void v2r1_disk2memdqb(struct dquot *dquot, void *dp);
32 static int v2r1_is_id(void *dp, struct dquot *dquot);
198 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp) in v2r0_disk2memdqb() argument
200 struct v2r0_disk_dqblk *d = dp, empty; in v2r0_disk2memdqb()
214 if (!memcmp(&empty, dp, sizeof(struct v2r0_disk_dqblk))) in v2r0_disk2memdqb()
218 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot) in v2r0_mem2diskdqb() argument
[all …]
/fs/xfs/scrub/
Dparent.c121 struct xfs_inode *dp = NULL; in xchk_parent_validate() local
157 error = xfs_iget(mp, sc->tp, dnum, XFS_IGET_UNTRUSTED, 0, &dp); in xchk_parent_validate()
165 if (dp == sc->ip || !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate()
177 if (xfs_ilock_nowait(dp, XFS_IOLOCK_SHARED)) { in xchk_parent_validate()
178 error = xchk_parent_count_parent_dentries(sc, dp, &nlink); in xchk_parent_validate()
195 error = xchk_ilock_inverted(dp, XFS_IOLOCK_SHARED); in xchk_parent_validate()
200 error = xchk_parent_count_parent_dentries(sc, dp, &nlink); in xchk_parent_validate()
205 xfs_iunlock(dp, XFS_IOLOCK_SHARED); in xchk_parent_validate()
224 if (dnum != dp->i_ino) { in xchk_parent_validate()
225 xfs_irele(dp); in xchk_parent_validate()
[all …]
/fs/
Dbinfmt_misc.c551 char *dp = page; in entry_status() local
562 dp += sprintf(dp, "%s\ninterpreter %s\n", status, e->interpreter); in entry_status()
565 dp += sprintf(dp, "flags: "); in entry_status()
567 *dp++ = 'P'; in entry_status()
569 *dp++ = 'O'; in entry_status()
571 *dp++ = 'C'; in entry_status()
573 *dp++ = 'F'; in entry_status()
574 *dp++ = '\n'; in entry_status()
577 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
579 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()
198 return d_splice_alias(ip, dp); in vxfs_lookup()
/fs/nfsd/
Dnfs4state.c869 struct nfs4_delegation *dp; in alloc_init_deleg() local
878 dp = delegstateid(nfs4_alloc_stid(clp, deleg_slab, nfs4_free_deleg)); in alloc_init_deleg()
879 if (dp == NULL) in alloc_init_deleg()
887 dp->dl_stid.sc_stateid.si_generation = 1; in alloc_init_deleg()
888 INIT_LIST_HEAD(&dp->dl_perfile); in alloc_init_deleg()
889 INIT_LIST_HEAD(&dp->dl_perclnt); in alloc_init_deleg()
890 INIT_LIST_HEAD(&dp->dl_recall_lru); in alloc_init_deleg()
891 dp->dl_clnt_odstate = odstate; in alloc_init_deleg()
893 dp->dl_type = NFS4_OPEN_DELEGATE_READ; in alloc_init_deleg()
894 dp->dl_retries = 1; in alloc_init_deleg()
[all …]
/fs/openpromfs/
Dinode.c184 struct device_node *dp, *child; in openpromfs_lookup() local
195 dp = oi->u.node; in openpromfs_lookup()
202 child = dp->child; in openpromfs_lookup()
217 prop = dp->properties; in openpromfs_lookup()
251 if (of_node_name_eq(dp, "options") && (len == 17) && in openpromfs_lookup()
269 struct device_node *dp = oi->u.node; in openpromfs_readdir() local
283 (dp->parent == NULL ? in openpromfs_readdir()
285 dp->parent->unique_id), DT_DIR)) in openpromfs_readdir()
292 child = dp->child; in openpromfs_readdir()
309 prop = dp->properties; in openpromfs_readdir()

123