Lines Matching defs:xp
624 struct inode *xp;
628 xp = VTOI(xvp);
630 (xp->i_flags & SF_SNAPSHOT))
640 if (xp->i_nlink > 0)
643 if (ffs_checkfreefile(c->copy_fs, c->vp, xp->i_number))
663 struct inode *xp;
695 xp = VTOI(xvp);
697 loc = howmany(xp->i_size, fs->fs_bsize) - 1;
699 len = ffs_fragroundup(fs, ffs_blkoff(fs, xp->i_size));
707 ffs_blkfree_snap(copy_fs, vp, db_get(xp, loc),
708 len, xp->i_number);
709 blkno = db_get(xp, loc);
710 db_assign(xp, loc, 0);
715 error = expunge(vp, xp, copy_fs, fullacct, BLK_NOCOPY);
717 db_assign(xp, loc, blkno);
722 xp->i_number, xp->i_mode);
776 struct inode *ip = VTOI(vp), *xp;
780 TAILQ_FOREACH(xp, &si->si_snapshots, i_nextsnap) {
781 if (xp != ip) {
782 error = expunge(vp, xp, fs, snapacct, BLK_SNAP);
786 if (xp->i_nlink != 0)
791 error = ffs_freefile_snap(copy_fs, vp, xp->i_number, xp->i_mode);
1384 struct inode *xp, *ip = VTOI(vp);
1396 TAILQ_FOREACH(xp, &si->si_snapshots, i_nextsnap)
1397 if (xp == ip)
1400 if (xp != NULL)
1433 struct inode *ip = VTOI(vp), *xp;
1457 xp = TAILQ_LAST(&si->si_snapshots, inodelst);
1458 si->si_snapblklist = xp->i_snapblklist;
1735 struct inode *ip, *xp;
1839 xp = TAILQ_LAST(&si->si_snapshots, inodelst);
1840 si->si_snapblklist = xp->i_snapblklist;
1853 struct inode *xp;
1859 while ((xp = TAILQ_FIRST(&si->si_snapshots)) != 0) {
1860 vp = ITOV(xp);
1861 TAILQ_REMOVE(&si->si_snapshots, xp, i_nextsnap);
1862 if (xp->i_snapblklist == si->si_snapblklist)
1864 free(xp->i_snapblklist, M_UFSMNT);
1865 if (xp->i_nlink > 0) {
2272 struct inode *xp;
2276 TAILQ_FOREACH(xp, &si->si_snapshots, i_nextsnap)
2277 if (xp == ip)