Lines Matching refs:ip

80 	xfs_inode_t	*ip = XFS_IO_INODE(io);  in xfs_iomap_enter_trace()  local
82 if (!ip->i_rwtrace) in xfs_iomap_enter_trace()
85 ktrace_enter(ip->i_rwtrace, in xfs_iomap_enter_trace()
87 (void *)ip, in xfs_iomap_enter_trace()
88 (void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)), in xfs_iomap_enter_trace()
89 (void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)), in xfs_iomap_enter_trace()
114 xfs_inode_t *ip = XFS_IO_INODE(io); in xfs_iomap_map_trace() local
116 if (!ip->i_rwtrace) in xfs_iomap_map_trace()
119 ktrace_enter(ip->i_rwtrace, in xfs_iomap_map_trace()
121 (void *)ip, in xfs_iomap_map_trace()
122 (void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)), in xfs_iomap_map_trace()
123 (void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)), in xfs_iomap_map_trace()
335 xfs_inode_t *ip, in xfs_flush_space() argument
341 if (ip->i_delayed_blks) { in xfs_flush_space()
342 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_flush_space()
343 xfs_flush_inode(ip); in xfs_flush_space()
344 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_flush_space()
356 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_flush_space()
357 xfs_flush_device(ip); in xfs_flush_space()
358 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_flush_space()
367 xfs_inode_t *ip, in xfs_iomap_write_direct() argument
375 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_direct()
376 xfs_iocore_t *io = &ip->i_iocore; in xfs_iomap_write_direct()
399 error = XFS_QM_DQATTACH(ip->i_mount, ip, XFS_QMOPT_ILOCKED); in xfs_iomap_write_direct()
406 isize = ip->i_d.di_size; in xfs_iomap_write_direct()
431 if ((rt = XFS_IS_REALTIME_INODE(ip))) { in xfs_iomap_write_direct()
436 ip->i_d.di_extsize ? ip->i_d.di_extsize : sbrtextsize; in xfs_iomap_write_direct()
448 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_direct()
467 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_direct()
473 if (XFS_TRANS_RESERVE_BLKQUOTA(mp, tp, ip, resblks)) { in xfs_iomap_write_direct()
480 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_iomap_write_direct()
481 xfs_trans_ihold(tp, ip); in xfs_iomap_write_direct()
483 if (!(flags & BMAPI_MMAP) && (offset < ip->i_d.di_size || rt)) in xfs_iomap_write_direct()
491 error = xfs_bmapi(tp, ip, offset_fsb, count_fsb, in xfs_iomap_write_direct()
523 (ip->i_mount)->m_fsname, in xfs_iomap_write_direct()
524 (long long)ip->i_ino, in xfs_iomap_write_direct()
543 xfs_inode_t *ip, in xfs_iomap_write_delay() argument
550 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_delay()
551 xfs_iocore_t *io = &ip->i_iocore; in xfs_iomap_write_delay()
562 ASSERT(ismrlocked(&ip->i_lock, MR_UPDATE) != 0); in xfs_iomap_write_delay()
569 error = XFS_QM_DQATTACH(mp, ip, XFS_QMOPT_ILOCKED); in xfs_iomap_write_delay()
574 isize = ip->i_d.di_size; in xfs_iomap_write_delay()
593 if (!(ioflag & BMAPI_SYNC) && ((offset + count) > ip->i_d.di_size)) { in xfs_iomap_write_delay()
623 (ip->i_mount)->m_fsname, in xfs_iomap_write_delay()
624 (long long)ip->i_ino, in xfs_iomap_write_delay()
660 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof); in xfs_iomap_write_delay()
677 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof); in xfs_iomap_write_delay()
700 error = xfs_bmapi(NULL, ip, offset_fsb, in xfs_iomap_write_delay()
718 if (xfs_flush_space(ip, &fsynced, &ioflag)) in xfs_iomap_write_delay()
731 (ip->i_mount)->m_fsname, in xfs_iomap_write_delay()
732 (long long)ip->i_ino, in xfs_iomap_write_delay()
748 xfs_inode_t *ip, in xfs_iomap_write_allocate() argument
752 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_allocate()
753 xfs_iocore_t *io = &ip->i_iocore; in xfs_iomap_write_allocate()
770 if ((error = XFS_QM_DQATTACH(mp, ip, 0))) in xfs_iomap_write_allocate()
808 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_allocate()
809 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_iomap_write_allocate()
810 xfs_trans_ihold(tp, ip); in xfs_iomap_write_allocate()
821 end_fsb = XFS_B_TO_FSB(mp, ip->i_d.di_size); in xfs_iomap_write_allocate()
822 xfs_bmap_last_offset(NULL, ip, &last_block, in xfs_iomap_write_allocate()
834 error = xfs_bmapi(tp, ip, map_start_fsb, count_fsb, in xfs_iomap_write_allocate()
850 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_allocate()
865 (ip->i_mount)->m_fsname, in xfs_iomap_write_allocate()
866 (long long)ip->i_ino, in xfs_iomap_write_allocate()
895 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_allocate()
901 xfs_inode_t *ip, in xfs_iomap_write_unwritten() argument
905 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten()
906 xfs_iocore_t *io = &ip->i_iocore; in xfs_iomap_write_unwritten()
920 &ip->i_iocore, offset, count); in xfs_iomap_write_unwritten()
945 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
946 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
947 xfs_trans_ihold(tp, ip); in xfs_iomap_write_unwritten()
954 error = xfs_bmapi(tp, ip, offset_fsb, count_fsb, in xfs_iomap_write_unwritten()
966 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
974 (ip->i_mount)->m_fsname, in xfs_iomap_write_unwritten()
975 (long long)ip->i_ino, in xfs_iomap_write_unwritten()
997 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()