Lines Matching defs:metapath

36 struct metapath {
178 * @mp: The metapath to return the result in
181 * This routine returns a struct metapath structure that defines a path
188 * find_metapath() would return a struct metapath structure set to:
234 struct metapath *mp, unsigned int height)
243 static inline unsigned int metapath_branch_start(const struct metapath *mp)
251 * metaptr1 - Return the first possible metadata pointer in a metapath buffer
253 * @mp: The metapath
255 static inline __be64 *metaptr1(unsigned int height, const struct metapath *mp)
266 * @mp: The metapath
273 static inline __be64 *metapointer(unsigned int height, const struct metapath *mp)
279 static inline const __be64 *metaend(unsigned int height, const struct metapath *mp)
285 static void clone_metapath(struct metapath *clone, struct metapath *mp)
319 metapath_dibh(struct metapath *mp)
324 static int __fillup_metapath(struct gfs2_inode *ip, struct metapath *mp,
345 * @mp: The metapath
348 * hooked onto mp->mp_bh[0] and that the metapath has been initialised
359 static int lookup_metapath(struct gfs2_inode *ip, struct metapath *mp)
367 * @mp: The metapath
375 static int fillup_metapath(struct gfs2_inode *ip, struct metapath *mp, int h)
393 static sector_t metapath_to_block(struct gfs2_sbd *sdp, struct metapath *mp)
406 static void release_metapath(struct metapath *mp)
455 typedef enum walker_status (*gfs2_metadata_walker)(struct metapath *mp,
469 static int gfs2_walk_metadata(struct inode *inode, struct metapath *mp,
519 /* Decrease height of metapath. */
539 /* Increase height of metapath. */
551 static enum walker_status gfs2_hole_walker(struct metapath *mp,
577 * @mp: The metapath at lblock
585 struct metapath *mp, struct iomap *iomap)
587 struct metapath clone;
608 static inline void gfs2_indirect_init(struct metapath *mp,
636 * @mp: The metapath, with proper height information calculated
662 struct metapath *mp)
788 * @mp: The metapath
795 static u64 gfs2_alloc_size(struct inode *inode, struct metapath *mp, u64 size)
836 * @mp: The metapath
842 struct metapath *mp)
1011 struct metapath *mp)
1098 struct metapath mp = { .mp_aheight = 1, };
1410 struct metapath mp = { .mp_aheight = 1, };
1421 struct metapath mp = { .mp_aheight = 1, };
1441 * We sweep a metadata buffer (provided by the metapath) for blocks we need to
1605 static bool mp_eq_to_hgt(struct metapath *mp, __u16 *list, unsigned int h)
1613 * find_nonnull_ptr - find a non-null pointer given a metapath and height
1615 * @mp: starting metapath
1620 * Assumes the metapath is valid (with buffers) out to height h.
1621 * Returns: true if a non-null pointer was found in the metapath buffer
1624 static bool find_nonnull_ptr(struct gfs2_sbd *sdp, struct metapath *mp,
1653 DEALLOC_MP_FULL = 0, /* Strip a metapath with all buffers read in */
1654 DEALLOC_MP_LOWER = 1, /* lower the metapath strip height */
1655 DEALLOC_FILL_MP = 2, /* Fill in the metapath to the given height. */
1660 metapointer_range(struct metapath *mp, int height,
1682 struct metapath *mp, int height,
1717 struct metapath mp = {};
1729 int mp_h; /* metapath buffers are read in to this height */
1806 state = DEALLOC_MP_FULL; /* We have a complete metapath */
1808 state = DEALLOC_FILL_MP; /* deal with partial metapath */
1823 /* Truncate a full metapath at the given strip height.
1847 * point is the first metapath we must not deallocate!
1867 /* lower the metapath strip height */
1891 /* Here we've found a part of the metapath that is not
1902 /* Fill the metapath with buffers to the given height. */
1935 higher up in the metapath and try again, otherwise