Home
last modified time | relevance | path

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

12

/fs/xfs/
Dxfs_dir2_sf.c72 xfs_inode_t *dp, /* incore inode pointer */ in xfs_dir2_block_sfsize() argument
90 mp = dp->i_mount; in xfs_dir2_block_sfsize()
135 if (size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_block_sfsize()
161 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_sf() local
173 dp = args->dp; in xfs_dir2_block_to_sf()
174 mp = dp->i_mount; in xfs_dir2_block_to_sf()
193 dp->i_df.if_flags &= ~XFS_IFEXTENTS; in xfs_dir2_block_to_sf()
194 dp->i_df.if_flags |= XFS_IFINLINE; in xfs_dir2_block_to_sf()
195 dp->i_d.di_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_block_to_sf()
196 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
[all …]
Dxfs_dir2.c127 xfs_inode_t *dp) in xfs_dir_isempty() argument
131 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_isempty()
132 if (dp->i_d.di_size == 0) /* might happen during shutdown. */ in xfs_dir_isempty()
134 if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) in xfs_dir_isempty()
136 sfp = (xfs_dir2_sf_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
180 xfs_inode_t *dp, in xfs_dir_init() argument
187 args.dp = dp; in xfs_dir_init()
189 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_init()
201 xfs_inode_t *dp, in xfs_dir_createname() argument
212 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_createname()
[all …]
Dxfs_attr.c147 args.dp = ip; in xfs_attr_fetch()
238 xfs_attr_set_int(xfs_inode_t *dp, struct xfs_name *name, in xfs_attr_set_int() argument
245 xfs_mount_t *mp = dp->i_mount; in xfs_attr_set_int()
252 if ((error = XFS_QM_DQATTACH(mp, dp, 0))) in xfs_attr_set_int()
259 if (XFS_IFORK_Q(dp) == 0) { in xfs_attr_set_int()
263 if ((error = xfs_bmap_add_attrfork(dp, sf_size, rsvd))) in xfs_attr_set_int()
277 args.dp = dp; in xfs_attr_set_int()
284 args.total = xfs_attr_calc_size(dp, name->len, valuelen, &local); in xfs_attr_set_int()
312 xfs_ilock(dp, XFS_ILOCK_EXCL); in xfs_attr_set_int()
314 error = XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, args.trans, dp, args.total, 0, in xfs_attr_set_int()
[all …]
Dxfs_dir2_trace.c39 xfs_inode_t *dp, in xfs_dir2_trace_enter() argument
56 ASSERT(dp->i_dir_trace); in xfs_dir2_trace_enter()
68 ktrace_enter(dp->i_dir_trace, in xfs_dir2_trace_enter()
82 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS, where, in xfs_dir2_trace_args()
87 (void *)args->dp, (void *)args->trans, in xfs_dir2_trace_args()
98 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_B, where, in xfs_dir2_trace_args_b()
103 (void *)args->dp, (void *)args->trans, in xfs_dir2_trace_args_b()
115 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_BB, where, in xfs_dir2_trace_args_bb()
120 (void *)args->dp, (void *)args->trans, in xfs_dir2_trace_args_bb()
139 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_BIBII, where, in xfs_dir2_trace_args_bibii()
[all …]
Dxfs_dir2_block.c78 xfs_inode_t *dp; /* directory inode */ in xfs_dir2_block_addname() local
98 dp = args->dp; in xfs_dir2_block_addname()
100 mp = dp->i_mount; in xfs_dir2_block_addname()
105 xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &bp, XFS_DATA_FORK))) { in xfs_dir2_block_addname()
426 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_addname()
436 xfs_inode_t *dp, /* incore inode */ in xfs_dir2_block_getdents() argument
454 mp = dp->i_mount; in xfs_dir2_block_getdents()
464 error = xfs_da_read_buf(NULL, dp, mp->m_dirdatablk, -1, in xfs_dir2_block_getdents()
476 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_getdents()
593 xfs_inode_t *dp; /* incore inode */ in xfs_dir2_block_lookup() local
[all …]
Dxfs_attr_leaf.c76 STATIC int xfs_attr_node_inactive(xfs_trans_t **trans, xfs_inode_t *dp,
78 STATIC int xfs_attr_leaf_inactive(xfs_trans_t **trans, xfs_inode_t *dp,
80 STATIC int xfs_attr_leaf_freextent(xfs_trans_t **trans, xfs_inode_t *dp,
122 xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes) in xfs_attr_shortform_bytesfit() argument
128 xfs_mount_t *mp = dp->i_mount; in xfs_attr_shortform_bytesfit()
132 switch (dp->i_d.di_format) { in xfs_attr_shortform_bytesfit()
142 if (bytes <= XFS_IFORK_ASIZE(dp)) in xfs_attr_shortform_bytesfit()
143 return dp->i_d.di_forkoff; in xfs_attr_shortform_bytesfit()
147 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
149 switch (dp->i_d.di_format) { in xfs_attr_shortform_bytesfit()
[all …]
Dxfs_dir2_leaf.c48 static void xfs_dir2_leaf_check(xfs_inode_t *dp, xfs_dabuf_t *bp);
50 #define xfs_dir2_leaf_check(dp, bp) argument
72 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_leaf() local
84 dp = args->dp; in xfs_dir2_block_to_leaf()
85 mp = dp->i_mount; in xfs_dir2_block_to_leaf()
106 xfs_dir2_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
149 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
150 xfs_dir2_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
168 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_addname() local
192 dp = args->dp; in xfs_dir2_leaf_addname()
[all …]
Dxfs_dir2.h69 extern int xfs_dir_isempty(struct xfs_inode *dp);
70 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp,
72 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp,
76 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp,
79 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp,
83 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp,
87 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
96 extern int xfs_dir2_isblock(struct xfs_trans *tp, struct xfs_inode *dp,
98 extern int xfs_dir2_isleaf(struct xfs_trans *tp, struct xfs_inode *dp,
Dxfs_dir2_node.c49 static void xfs_dir2_leafn_check(xfs_inode_t *dp, xfs_dabuf_t *bp);
51 #define xfs_dir2_leafn_check(dp, bp) argument
111 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_to_node() local
127 dp = args->dp; in xfs_dir2_leaf_to_node()
128 mp = dp->i_mount; in xfs_dir2_leaf_to_node()
140 if ((error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(mp, fdb), -1, &fbp, in xfs_dir2_leaf_to_node()
153 ASSERT(be32_to_cpu(ltp->bestcount) <= (uint)dp->i_d.di_size / mp->m_dirblksize); in xfs_dir2_leaf_to_node()
174 xfs_dir2_leafn_check(dp, lbp); in xfs_dir2_leaf_to_node()
189 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leafn_add() local
200 dp = args->dp; in xfs_dir2_leafn_add()
[all …]
Dxfs_vnodeops.h26 int xfs_lookup(struct xfs_inode *dp, struct xfs_name *name,
28 int xfs_create(struct xfs_inode *dp, struct xfs_name *name, mode_t mode,
30 int xfs_remove(struct xfs_inode *dp, struct xfs_name *name,
34 int xfs_mkdir(struct xfs_inode *dp, struct xfs_name *dir_name,
36 int xfs_readdir(struct xfs_inode *dp, void *dirent, size_t bufsize,
38 int xfs_symlink(struct xfs_inode *dp, struct xfs_name *link_name,
51 int xfs_attr_set(struct xfs_inode *dp, const char *name, char *value,
53 int xfs_attr_remove(struct xfs_inode *dp, const char *name, int flags);
54 int xfs_attr_list(struct xfs_inode *dp, char *buffer, int bufsize,
Dxfs_vnodeops.c1345 xfs_inode_t *dp, in xfs_lookup() argument
1354 xfs_itrace_entry(dp); in xfs_lookup()
1356 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_lookup()
1359 lock_mode = xfs_ilock_map_shared(dp); in xfs_lookup()
1360 error = xfs_dir_lookup(NULL, dp, name, &inum, ci_name); in xfs_lookup()
1361 xfs_iunlock_map_shared(dp, lock_mode); in xfs_lookup()
1366 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp, 0); in xfs_lookup()
1383 xfs_inode_t *dp, in xfs_create() argument
1390 xfs_mount_t *mp = dp->i_mount; in xfs_create()
1405 xfs_itrace_entry(dp); in xfs_create()
[all …]
Dxfs_dir2_leaf.h115 xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_byte() argument
117 return (xfs_dir2_off_t)(dp) << XFS_DIR2_DATA_ALIGN_LOG; in xfs_dir2_dataptr_to_byte()
143 xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() argument
145 return xfs_dir2_byte_to_db(mp, xfs_dir2_dataptr_to_byte(mp, dp)); in xfs_dir2_dataptr_to_db()
162 xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() argument
164 return xfs_dir2_byte_to_off(mp, xfs_dir2_dataptr_to_byte(mp, dp)); in xfs_dir2_dataptr_to_off()
235 extern int xfs_dir2_leaf_getdents(struct xfs_inode *dp, void *dirent,
Dxfs_da_btree.c119 error = xfs_da_get_buf(tp, args->dp, blkno, -1, &bp, whichfork); in xfs_da_node_create()
305 xfs_inode_t *dp; in xfs_da_root_split() local
319 dp = args->dp; in xfs_da_root_split()
322 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da_root_split()
739 error = xfs_da_read_buf(args->trans, args->dp, child, -1, &bp, in xfs_da_root_join()
834 error = xfs_da_read_buf(state->args->trans, state->args->dp, in xfs_da_node_toosmall()
1074 error = xfs_da_read_buf(args->trans, args->dp, blkno, in xfs_da_node_lookup_int()
1235 error = xfs_da_read_buf(args->trans, args->dp, in xfs_da_blk_link()
1256 error = xfs_da_read_buf(args->trans, args->dp, in xfs_da_blk_link()
1352 error = xfs_da_read_buf(args->trans, args->dp, in xfs_da_blk_unlink()
[all …]
Dxfs_da_btree.h101 struct xfs_inode *dp; /* directory inode to manipulate */ member
243 int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp,
246 int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp,
249 xfs_daddr_t xfs_da_reada_buf(struct xfs_trans *trans, struct xfs_inode *dp,
/fs/jfs/
Djfs_dmap.c74 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
83 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
85 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
88 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
90 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
101 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
103 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
112 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
114 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
115 static int dbInitDmapTree(struct dmap * dp);
[all …]
Djfs_imap.c314 struct dinode *dp; in diRead() local
390 dp = (struct dinode *) mp->data; in diRead()
391 dp += rel_inode; in diRead()
393 if (ip->i_ino != le32_to_cpu(dp->di_number)) { in diRead()
396 } else if (le32_to_cpu(dp->di_nlink) == 0) in diRead()
400 rc = copy_from_dinode(dp, ip); in diRead()
438 struct dinode *dp; in diReadSpecial() local
471 dp = (struct dinode *) (mp->data); in diReadSpecial()
472 dp += inum % 8; /* 8 inodes per 4K page */ in diReadSpecial()
475 if ((copy_from_dinode(dp, ip)) != 0) { in diReadSpecial()
[all …]
/fs/cifs/
Dcifs_spnego.c96 char *description, *dp; in cifs_get_spnego_key() local
115 dp = description; in cifs_get_spnego_key()
118 sprintf(dp, "ver=0x%x;host=%s;", CIFS_SPNEGO_UPCALL_VERSION, in cifs_get_spnego_key()
120 dp = description + strlen(description); in cifs_get_spnego_key()
124 sprintf(dp, "ip4=%pI4", &server->addr.sockAddr.sin_addr); in cifs_get_spnego_key()
126 sprintf(dp, "ip6=%pi6", &server->addr.sockAddr6.sin6_addr); in cifs_get_spnego_key()
130 dp = description + strlen(description); in cifs_get_spnego_key()
134 sprintf(dp, ";sec=krb5"); in cifs_get_spnego_key()
136 sprintf(dp, ";sec=mskrb5"); in cifs_get_spnego_key()
140 dp = description + strlen(description); in cifs_get_spnego_key()
[all …]
/fs/xfs/quota/
Dxfs_qm_bhv.c54 xfs_disk_dquot_t *dp) in xfs_fill_statvfs_from_dquot() argument
58 limit = dp->d_blk_softlimit ? in xfs_fill_statvfs_from_dquot()
59 be64_to_cpu(dp->d_blk_softlimit) : in xfs_fill_statvfs_from_dquot()
60 be64_to_cpu(dp->d_blk_hardlimit); in xfs_fill_statvfs_from_dquot()
64 (statp->f_blocks > be64_to_cpu(dp->d_bcount)) ? in xfs_fill_statvfs_from_dquot()
65 (statp->f_blocks - be64_to_cpu(dp->d_bcount)) : 0; in xfs_fill_statvfs_from_dquot()
68 limit = dp->d_ino_softlimit ? in xfs_fill_statvfs_from_dquot()
69 be64_to_cpu(dp->d_ino_softlimit) : in xfs_fill_statvfs_from_dquot()
70 be64_to_cpu(dp->d_ino_hardlimit); in xfs_fill_statvfs_from_dquot()
74 (statp->f_files > be64_to_cpu(dp->d_icount)) ? in xfs_fill_statvfs_from_dquot()
[all …]
/fs/nfsd/
Dnfs4state.c193 struct nfs4_delegation *dp; in alloc_init_deleg() local
202 dp = kmem_cache_alloc(deleg_slab, GFP_KERNEL); in alloc_init_deleg()
203 if (dp == NULL) in alloc_init_deleg()
204 return dp; in alloc_init_deleg()
206 INIT_LIST_HEAD(&dp->dl_perfile); in alloc_init_deleg()
207 INIT_LIST_HEAD(&dp->dl_perclnt); in alloc_init_deleg()
208 INIT_LIST_HEAD(&dp->dl_recall_lru); in alloc_init_deleg()
209 dp->dl_client = clp; in alloc_init_deleg()
211 dp->dl_file = fp; in alloc_init_deleg()
212 dp->dl_flock = NULL; in alloc_init_deleg()
[all …]
/fs/proc/
Dgeneric.c49 struct proc_dir_entry * dp; in proc_file_read() local
63 dp = PDE(inode); in proc_file_read()
71 if (dp->read_proc) { in proc_file_read()
119 n = dp->read_proc(page, &start, *ppos, in proc_file_read()
120 count, &eof, dp->data); in proc_file_read()
190 struct proc_dir_entry * dp; in proc_file_write() local
192 dp = PDE(inode); in proc_file_write()
194 if (!dp->write_proc) in proc_file_write()
198 return dp->write_proc(file, buffer, count, dp->data); in proc_file_write()
516 static int proc_register(struct proc_dir_entry * dir, struct proc_dir_entry * dp) in proc_register() argument
[all …]
/fs/
Dquota_v2.c26 static void v2_mem2diskdqb(void *dp, struct dquot *dquot);
27 static void v2_disk2memdqb(struct dquot *dquot, void *dp);
28 static int v2_is_id(void *dp, struct dquot *dquot);
137 static void v2_disk2memdqb(struct dquot *dquot, void *dp) in v2_disk2memdqb() argument
139 struct v2_disk_dqblk *d = dp, empty; in v2_disk2memdqb()
153 if (!memcmp(&empty, dp, sizeof(struct v2_disk_dqblk))) in v2_disk2memdqb()
157 static void v2_mem2diskdqb(void *dp, struct dquot *dquot) in v2_mem2diskdqb() argument
159 struct v2_disk_dqblk *d = dp; in v2_mem2diskdqb()
173 if (qtree_entry_unused(info, dp)) in v2_mem2diskdqb()
177 static int v2_is_id(void *dp, struct dquot *dquot) in v2_is_id() argument
[all …]
Dbinfmt_misc.c439 char *dp; in entry_status() local
452 dp = page + strlen(page); in entry_status()
455 sprintf (dp, "%s", flags); in entry_status()
456 dp += strlen (flags); in entry_status()
458 *dp ++ = 'P'; in entry_status()
461 *dp ++ = 'O'; in entry_status()
464 *dp ++ = 'C'; in entry_status()
466 *dp ++ = '\n'; in entry_status()
470 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
474 sprintf(dp, "offset %i\nmagic ", e->offset); in entry_status()
[all …]
/fs/freevxfs/
Dvxfs_lookup.c113 vxfs_find_entry(struct inode *ip, struct dentry *dp, struct page **ppp) in vxfs_find_entry() argument
117 const char *name = dp->d_name.name; in vxfs_find_entry()
118 int namelen = dp->d_name.len; in vxfs_find_entry()
174 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument
180 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name()
205 vxfs_lookup(struct inode *dip, struct dentry *dp, struct nameidata *nd) in vxfs_lookup() argument
210 if (dp->d_name.len > VXFS_NAMELEN) in vxfs_lookup()
214 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup()
223 d_add(dp, ip); in vxfs_lookup()
/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
286 (dp->parent == NULL ? in openpromfs_readdir()
288 dp->parent->unique_id), DT_DIR) < 0) in openpromfs_readdir()
297 child = dp->child; in openpromfs_readdir()
314 prop = dp->properties; in openpromfs_readdir()
/fs/ntfs/
Dcompress.c184 struct page *dp; /* Current destination page being worked on. */ in ntfs_decompress() local
229 dp = dest_pages[di]; in ntfs_decompress()
234 handle_bounds_compressed_page(dp, i_size, in ntfs_decompress()
236 flush_dcache_page(dp); in ntfs_decompress()
237 kunmap(dp); in ntfs_decompress()
238 SetPageUptodate(dp); in ntfs_decompress()
239 unlock_page(dp); in ntfs_decompress()
243 page_cache_release(dp); in ntfs_decompress()
270 dp = dest_pages[*dest_index]; in ntfs_decompress()
271 if (!dp) { in ntfs_decompress()
[all …]

12