Home
last modified time | relevance | path

Searched refs:whichfork (Results 1 – 24 of 24) sorted by relevance

/fs/xfs/libxfs/
Dxfs_bmap.c68 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() argument
92 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_compute_maxlevels()
109 mp->m_bm_maxlevels[whichfork] = level; in xfs_bmap_compute_maxlevels()
143 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) in xfs_bmap_needs_btree() argument
145 return whichfork != XFS_COW_FORK && in xfs_bmap_needs_btree()
146 XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS && in xfs_bmap_needs_btree()
147 XFS_IFORK_NEXTENTS(ip, whichfork) > in xfs_bmap_needs_btree()
148 XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_needs_btree()
154 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) in xfs_bmap_wants_extents() argument
156 return whichfork != XFS_COW_FORK && in xfs_bmap_wants_extents()
[all …]
Dxfs_inode_fork.c250 int whichfork, in xfs_init_local_fork() argument
254 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_init_local_fork()
303 int whichfork, in xfs_iformat_local() argument
311 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
315 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
321 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local()
335 int whichfork) in xfs_iformat_extents() argument
338 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iformat_extents()
339 int nex = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_iformat_extents()
348 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) { in xfs_iformat_extents()
[all …]
Dxfs_bmap.h202 int whichfork, unsigned long caller_ip);
213 void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork);
217 void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork);
219 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork);
221 xfs_fileoff_t *last_block, int whichfork);
223 int whichfork);
224 int xfs_bmap_one_block(struct xfs_inode *ip, int whichfork);
226 int whichfork);
243 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork,
255 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork,
[all …]
Dxfs_rmap.h37 int whichfork) in xfs_rmap_ino_bmbt_owner() argument
42 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_bmbt_owner()
50 int whichfork, in xfs_rmap_ino_owner() argument
56 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_owner()
189 struct xfs_inode *ip, int whichfork,
192 struct xfs_inode *ip, int whichfork,
195 struct xfs_inode *ip, int whichfork,
207 uint64_t owner, int whichfork, xfs_fileoff_t startoff,
Dxfs_bmap_btree.c376 cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_bmbt_dup_cursor()
420 cur->bc_private.b.whichfork); in xfs_bmbt_alloc_block()
501 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_private.b.whichfork); in xfs_bmbt_free_block()
519 cur->bc_private.b.whichfork); in xfs_bmbt_get_minrecs()
537 cur->bc_private.b.whichfork); in xfs_bmbt_get_maxrecs()
761 int whichfork) /* data or attr fork */ in xfs_bmbt_init_cursor() argument
763 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmbt_init_cursor()
765 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmbt_init_cursor()
781 cur->bc_private.b.forksize = XFS_IFORK_SIZE(ip, whichfork); in xfs_bmbt_init_cursor()
787 cur->bc_private.b.whichfork = whichfork; in xfs_bmbt_init_cursor()
[all …]
Dxfs_da_btree.h76 int whichfork; /* data or attribute fork */ member
166 int level, struct xfs_buf **bpp, int whichfork);
199 struct xfs_buf **bp, int whichfork);
202 struct xfs_buf **bpp, int whichfork,
205 xfs_daddr_t mapped_bno, int whichfork,
Dxfs_da_btree.c306 int whichfork) in xfs_da3_node_create() argument
319 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create()
539 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da3_root_split()
602 (args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0, in xfs_da3_root_split()
603 level + 1, &bp, args->whichfork); in xfs_da3_root_split()
662 useextra = state->extravalid && state->args->whichfork == XFS_ATTR_FORK; in xfs_da3_node_split()
677 &newblk->bp, state->args->whichfork); in xfs_da3_node_split()
897 if (state->args->whichfork == XFS_DATA_FORK) in xfs_da3_node_add()
1081 args->whichfork); in xfs_da3_root_join()
1196 blkno, -1, &bp, state->args->whichfork); in xfs_da3_node_toosmall()
[all …]
Dxfs_bmap_btree.h129 int whichfork, xfs_ino_t new_owner,
138 static inline bool xfs_bmbt_validate_extent(struct xfs_mount *mp, int whichfork, in xfs_bmbt_validate_extent() argument
143 if (whichfork == XFS_DATA_FORK && in xfs_bmbt_validate_extent()
Dxfs_rmap.c2066 int whichfork, in xfs_rmap_finish_one() argument
2086 trace_xfs_rmap_deferred(mp, agno, type, bno, owner, whichfork, in xfs_rmap_finish_one()
2123 xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff); in xfs_rmap_finish_one()
2171 int whichfork) in xfs_rmap_update_is_needed() argument
2173 return xfs_sb_version_hasrmapbt(&mp->m_sb) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed()
2186 int whichfork, in __xfs_rmap_add() argument
2194 owner, whichfork, in __xfs_rmap_add()
2203 ri->ri_whichfork = whichfork; in __xfs_rmap_add()
2216 int whichfork, in xfs_rmap_map_extent() argument
2219 if (!xfs_rmap_update_is_needed(mp, whichfork)) in xfs_rmap_map_extent()
[all …]
Dxfs_dir2.c299 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname()
393 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup()
471 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename()
536 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace()
Dxfs_btree.c634 ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_btree_get_iroot()
1424 xfs_ilog_fbroot(cur->bc_private.b.whichfork)); in xfs_btree_log_keys()
1474 xfs_ilog_fbroot(cur->bc_private.b.whichfork)); in xfs_btree_log_ptrs()
1547 xfs_ilog_fbroot(cur->bc_private.b.whichfork)); in xfs_btree_log_block()
3035 cur->bc_private.b.whichfork); in xfs_btree_new_iroot()
3048 XFS_ILOG_CORE | xfs_ilog_fbroot(cur->bc_private.b.whichfork); in xfs_btree_new_iroot()
3210 xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork); in xfs_btree_make_block_unfull()
3568 int whichfork = cur->bc_private.b.whichfork; in xfs_btree_kill_iroot() local
3570 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_btree_kill_iroot()
3630 cur->bc_private.b.whichfork); in xfs_btree_kill_iroot()
[all …]
Dxfs_btree.h234 char whichfork; /* data or attr fork */ member
Dxfs_attr.c90 args->whichfork = XFS_ATTR_FORK; in xfs_attr_args_init()
Dxfs_attr_leaf.c805 nargs.whichfork = XFS_ATTR_FORK; in xfs_attr_shortform_to_leaf()
935 nargs.whichfork = XFS_ATTR_FORK; in xfs_attr3_leaf_to_shortform()
/fs/xfs/
Dxfs_bmap_util.c205 int whichfork, in xfs_bmap_eof() argument
211 error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, eof); in xfs_bmap_eof()
352 int whichfork, in xfs_bmap_count_blocks() argument
368 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_count_blocks()
372 switch (XFS_IFORK_FORMAT(ip, whichfork)) { in xfs_bmap_count_blocks()
378 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_count_blocks()
414 int whichfork, in xfs_getbmapx_fix_eof_hole() argument
445 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_getbmapx_fix_eof_hole()
459 int whichfork, in xfs_getbmap_adjust_shared() argument
478 whichfork != XFS_DATA_FORK || in xfs_getbmap_adjust_shared()
[all …]
Dxfs_bmap_util.h46 int whichfork, int *eof);
62 int whichfork, struct xfs_bmbt_irec *rec,
88 int whichfork, xfs_extnum_t *nextents,
Dxfs_trans_bmap.c63 int whichfork, in xfs_trans_log_finish_bmap_update() argument
71 error = xfs_bmap_finish_one(tp, dop, ip, type, whichfork, startoff, in xfs_trans_log_finish_bmap_update()
128 int whichfork, in xfs_trans_set_bmap_flags() argument
142 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_bmap_flags()
Dxfs_trans_rmap.c39 int whichfork, in xfs_trans_set_rmap_flags() argument
45 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_rmap_flags()
100 int whichfork, in xfs_trans_log_finish_rmap_update() argument
109 error = xfs_rmap_finish_one(tp, type, owner, whichfork, startoff, in xfs_trans_log_finish_rmap_update()
Dxfs_bmap_item.c404 int whichfork; in xfs_bui_recover() local
470 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_recover()
486 ip, whichfork, bmap->me_startoff, in xfs_bui_recover()
Dxfs_rmap_item.c427 int whichfork; in xfs_rui_recover() local
482 whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ? in xfs_rui_recover()
514 rmap->me_owner, whichfork, in xfs_rui_recover()
Dxfs_trans.h255 uint64_t owner, int whichfork, xfs_fileoff_t startoff,
280 int whichfork, xfs_fileoff_t startoff, xfs_fsblock_t startblock,
Dxfs_inode.c1555 int whichfork, in xfs_itruncate_extents() argument
1599 xfs_bmapi_aflag(whichfork), in xfs_itruncate_extents()
2431 int whichfork) in xfs_ifree_local_data() argument
2435 if (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_LOCAL) in xfs_ifree_local_data()
2438 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_ifree_local_data()
2439 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_ifree_local_data()
Dxfs_iomap.c669 int whichfork, in xfs_iomap_write_allocate() argument
685 if (whichfork == XFS_COW_FORK) in xfs_iomap_write_allocate()
Dxfs_trace.h2403 int whichfork,
2407 TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state),
2413 __field(int, whichfork)
2424 __entry->whichfork = whichfork;
2436 __entry->whichfork == XFS_ATTR_FORK ? "attr" : "data",
2447 int whichfork, \
2451 TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state))