• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/xfs/

Lines Matching refs:ip

62 	struct xfs_inode	*ip,
70 struct xfs_mount *mp = ip->i_mount;
76 ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG);
83 trace_xfs_iomap_enter(ip, offset, count, flags, NULL);
87 lockmode = xfs_ilock_map_shared(ip);
94 xfs_ilock(ip, lockmode);
102 if (!xfs_ilock_nowait(ip, lockmode))
105 xfs_ilock(ip, lockmode);
118 error = xfs_bmapi(NULL, ip, offset_fsb,
132 trace_xfs_iomap_found(ip, offset, count, flags, imap);
137 error = xfs_iomap_write_direct(ip, offset, count, flags,
140 error = xfs_iomap_write_delay(ip, offset, count, flags,
144 trace_xfs_iomap_alloc(ip, offset, count, flags, imap);
150 xfs_iunlock(ip, lockmode);
154 trace_xfs_iomap_found(ip, offset, count, flags, imap);
158 error = xfs_iomap_write_allocate(ip, offset, count,
167 xfs_iunlock(ip, lockmode);
174 xfs_inode_t *ip,
182 if (XFS_IS_REALTIME_INODE(ip))
190 (ip->i_size >= XFS_FSB_TO_B(mp, mp->m_swidth)))
197 else if (mp->m_dalign && (ip->i_size >= XFS_FSB_TO_B(mp, mp->m_dalign)))
213 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof);
224 xfs_inode_t *ip,
227 xfs_cmn_err(XFS_PTAG_FSBLOCK_ZERO, CE_ALERT, ip->i_mount,
231 (unsigned long long)ip->i_ino,
241 xfs_inode_t *ip,
248 xfs_mount_t *mp = ip->i_mount;
268 error = xfs_qm_dqattach_locked(ip, 0);
272 rt = XFS_IS_REALTIME_INODE(ip);
273 extsz = xfs_get_extsz_hint(ip);
277 if ((offset + count) > ip->i_size) {
278 error = xfs_iomap_eof_align_last_fsb(mp, ip, extsz, &last_fsb);
312 xfs_iunlock(ip, XFS_ILOCK_EXCL);
323 xfs_ilock(ip, XFS_ILOCK_EXCL);
327 error = xfs_trans_reserve_quota_nblks(tp, ip, qblocks, 0, quota_flag);
331 xfs_trans_ijoin(tp, ip);
334 if ((flags & BMAPI_DIRECT) && (offset < ip->i_size || extsz))
345 error = xfs_bmapi(tp, ip, offset_fsb, count_fsb, bmapi_flag,
368 if (!(imap->br_startblock || XFS_IS_REALTIME_INODE(ip))) {
369 error = xfs_cmn_err_fsblock_zero(ip, imap);
378 xfs_trans_unreserve_quota_nblks(tp, ip, qblocks, 0, quota_flag);
396 xfs_inode_t *ip,
410 if ((offset + count) <= ip->i_size)
422 error = xfs_bmapi(NULL, ip, start_fsb, count_fsb, 0,
440 xfs_inode_t *ip,
447 xfs_mount_t *mp = ip->i_mount;
459 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
465 error = xfs_qm_dqattach_locked(ip, 0);
469 extsz = xfs_get_extsz_hint(ip);
472 error = xfs_iomap_eof_want_preallocate(mp, ip, offset, count,
487 error = xfs_iomap_eof_align_last_fsb(mp, ip, extsz, &last_fsb);
494 error = xfs_bmapi(NULL, ip, offset_fsb,
508 trace_xfs_delalloc_enospc(ip, offset, count);
512 xfs_iunlock(ip, XFS_ILOCK_EXCL);
513 xfs_flush_inodes(ip);
514 xfs_ilock(ip, XFS_ILOCK_EXCL);
522 if (!(imap[0].br_startblock || XFS_IS_REALTIME_INODE(ip)))
523 return xfs_cmn_err_fsblock_zero(ip, &imap[0]);
543 xfs_inode_t *ip,
549 xfs_mount_t *mp = ip->i_mount;
565 error = xfs_qm_dqattach(ip, 0);
598 xfs_ilock(ip, XFS_ILOCK_EXCL);
599 xfs_trans_ijoin(tp, ip);
635 end_fsb = XFS_B_TO_FSB(mp, ip->i_size);
636 error = xfs_bmap_last_offset(NULL, ip, &last_block,
656 error = xfs_bmapi(tp, ip, map_start_fsb, count_fsb,
670 xfs_iunlock(ip, XFS_ILOCK_EXCL);
677 if (!(imap->br_startblock || XFS_IS_REALTIME_INODE(ip)))
678 return xfs_cmn_err_fsblock_zero(ip, imap);
700 xfs_iunlock(ip, XFS_ILOCK_EXCL);
706 xfs_inode_t *ip,
710 xfs_mount_t *mp = ip->i_mount;
723 trace_xfs_unwritten_convert(ip, offset, count);
765 xfs_ilock(ip, XFS_ILOCK_EXCL);
766 xfs_trans_ijoin(tp, ip);
773 error = xfs_bmapi(tp, ip, offset_fsb, count_fsb,
784 xfs_iunlock(ip, XFS_ILOCK_EXCL);
788 if (!(imap.br_startblock || XFS_IS_REALTIME_INODE(ip)))
789 return xfs_cmn_err_fsblock_zero(ip, &imap);
808 xfs_iunlock(ip, XFS_ILOCK_EXCL);