Lines Matching refs:ip

48 	if (S_ISREG(VFS_I(sc->ip)->i_mode) &&  in xchk_setup_inode_bmap()
50 struct address_space *mapping = VFS_I(sc->ip)->i_mapping; in xchk_setup_inode_bmap()
54 inode_dio_wait(VFS_I(sc->ip)); in xchk_setup_inode_bmap()
174 uint64_t owner = info->sc->ip->i_ino; in xchk_bmap_xref_rmap()
289 struct xfs_inode *ip, in xchk_bmap_rt_iextent_xref() argument
300 struct xfs_inode *ip, in xchk_bmap_iextent_xref() argument
325 if (!xfs_is_reflink_inode(info->sc->ip)) { in xchk_bmap_iextent_xref()
326 xfs_rmap_ino_owner(&oinfo, info->sc->ip->i_ino, in xchk_bmap_iextent_xref()
338 xfs_rmap_ino_owner(&oinfo, info->sc->ip->i_ino, in xchk_bmap_iextent_xref()
368 struct xfs_inode *ip, in xchk_bmap_dirattr_extent() argument
372 struct xfs_mount *mp = ip->i_mount; in xchk_bmap_dirattr_extent()
375 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
390 struct xfs_inode *ip, in xchk_bmap_iextent() argument
409 xchk_bmap_dirattr_extent(ip, info, irec); in xchk_bmap_iextent()
431 xchk_bmap_rt_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
433 xchk_bmap_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
446 struct xfs_inode *ip = bs->cur->bc_ino.ip; in xchk_bmapbt_rec() local
449 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, info->whichfork); in xchk_bmapbt_rec()
462 if (owner != ip->i_ino) in xchk_bmapbt_rec()
479 if (xfs_bmap_validate_extent(ip, info->whichfork, &irec) != NULL) { in xchk_bmapbt_rec()
485 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur, in xchk_bmapbt_rec()
504 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->ip, whichfork); in xchk_bmap_btree()
506 struct xfs_inode *ip = sc->ip; in xchk_bmap_btree() local
513 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap_btree()
518 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
519 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
547 if (rec->rm_owner != sc->ip->i_ino) in xchk_bmap_check_rmap()
556 ifp = xfs_ifork_ptr(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
562 have_map = xfs_iext_lookup_extent(sc->ip, ifp, rec->rm_offset, in xchk_bmap_check_rmap()
665 ifp = xfs_ifork_ptr(sc->ip, info->whichfork); in xchk_bmap_want_check_rmaps()
668 i_size_read(VFS_I(sc->ip)) == 0) in xchk_bmap_want_check_rmaps()
702 struct xfs_inode *ip, in xchk_bmap_iextent_delalloc() argument
778 ifp = xfs_ifork_ptr(info->sc->ip, info->whichfork); in xchk_bmap_iext_iter()
818 xchk_ino_set_preen(info->sc, info->sc->ip->i_ino); in xchk_bmap_iext_iter()
837 struct xfs_inode *ip = sc->ip; in xchk_bmap() local
838 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xchk_bmap()
846 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
848 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
855 xchk_ino_set_corrupt(sc, sc->ip->i_ino); in xchk_bmap()
861 xchk_ino_set_corrupt(sc, sc->ip->i_ino); in xchk_bmap()
898 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
922 xchk_bmap_iextent_delalloc(ip, &info, &irec); in xchk_bmap()
924 xchk_bmap_iextent(ip, &info, &irec); in xchk_bmap()