Lines Matching full:handlers

189 /* Compare two getfsmap device handlers. */
900 struct xfs_getfsmap_dev handlers[XFS_GETFSMAP_DEVS]; in xfs_getfsmap() local
918 /* Set up our device handlers. */ in xfs_getfsmap()
919 memset(handlers, 0, sizeof(handlers)); in xfs_getfsmap()
920 handlers[0].nr_sectors = XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks); in xfs_getfsmap()
921 handlers[0].dev = new_encode_dev(mp->m_ddev_targp->bt_dev); in xfs_getfsmap()
923 handlers[0].fn = xfs_getfsmap_datadev_rmapbt; in xfs_getfsmap()
925 handlers[0].fn = xfs_getfsmap_datadev_bnobt; in xfs_getfsmap()
927 handlers[1].nr_sectors = XFS_FSB_TO_BB(mp, in xfs_getfsmap()
929 handlers[1].dev = new_encode_dev(mp->m_logdev_targp->bt_dev); in xfs_getfsmap()
930 handlers[1].fn = xfs_getfsmap_logdev; in xfs_getfsmap()
934 handlers[2].nr_sectors = XFS_FSB_TO_BB(mp, mp->m_sb.sb_rblocks); in xfs_getfsmap()
935 handlers[2].dev = new_encode_dev(mp->m_rtdev_targp->bt_dev); in xfs_getfsmap()
936 handlers[2].fn = xfs_getfsmap_rtdev_rtbitmap; in xfs_getfsmap()
940 xfs_sort(handlers, XFS_GETFSMAP_DEVS, sizeof(struct xfs_getfsmap_dev), in xfs_getfsmap()
973 if (!handlers[i].fn) in xfs_getfsmap()
975 if (head->fmh_keys[0].fmr_device > handlers[i].dev) in xfs_getfsmap()
977 if (head->fmh_keys[1].fmr_device < handlers[i].dev) in xfs_getfsmap()
987 if (handlers[i].dev == head->fmh_keys[1].fmr_device) { in xfs_getfsmap()
989 info.end_daddr = min(handlers[i].nr_sectors - 1, in xfs_getfsmap()
992 if (handlers[i].dev > head->fmh_keys[0].fmr_device) in xfs_getfsmap()
1004 info.dev = handlers[i].dev; in xfs_getfsmap()
1009 error = handlers[i].fn(tp, dkeys, &info); in xfs_getfsmap()