|
|
| version 1.716, 2007/08/24 16:16:26 | version 1.717, 2007/09/11 06:11:49 |
|---|---|
| Line 88 xfs_getattr( | Line 88 xfs_getattr( |
| bhv_vnode_t *vp = XFS_ITOV(ip); | bhv_vnode_t *vp = XFS_ITOV(ip); |
| xfs_mount_t *mp = ip->i_mount; | xfs_mount_t *mp = ip->i_mount; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| if (XFS_FORCED_SHUTDOWN(mp)) | if (XFS_FORCED_SHUTDOWN(mp)) |
| return XFS_ERROR(EIO); | return XFS_ERROR(EIO); |
| Line 228 xfs_setattr( | Line 228 xfs_setattr( |
| int file_owner; | int file_owner; |
| int need_iolock = 1; | int need_iolock = 1; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| if (mp->m_flags & XFS_MOUNT_RDONLY) | if (mp->m_flags & XFS_MOUNT_RDONLY) |
| return XFS_ERROR(EROFS); | return XFS_ERROR(EROFS); |
| Line 915 xfs_access( | Line 915 xfs_access( |
| { | { |
| int error; | int error; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| xfs_ilock(ip, XFS_ILOCK_SHARED); | xfs_ilock(ip, XFS_ILOCK_SHARED); |
| error = xfs_iaccess(ip, mode, credp); | error = xfs_iaccess(ip, mode, credp); |
| xfs_iunlock(ip, XFS_ILOCK_SHARED); | xfs_iunlock(ip, XFS_ILOCK_SHARED); |
| Line 987 xfs_readlink( | Line 986 xfs_readlink( |
| int pathlen; | int pathlen; |
| int error = 0; | int error = 0; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| if (XFS_FORCED_SHUTDOWN(mp)) | if (XFS_FORCED_SHUTDOWN(mp)) |
| return XFS_ERROR(EIO); | return XFS_ERROR(EIO); |
| Line 1033 xfs_fsync( | Line 1032 xfs_fsync( |
| int error; | int error; |
| int log_flushed = 0, changed = 1; | int log_flushed = 0, changed = 1; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| ASSERT(start >= 0 && stop >= -1); | ASSERT(start >= 0 && stop >= -1); |
| Line 1589 xfs_inactive( | Line 1588 xfs_inactive( |
| int error; | int error; |
| int truncate; | int truncate; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| /* | /* |
| * If the inode is already free, then there can be nothing | * If the inode is already free, then there can be nothing |
| Line 1802 xfs_lookup( | Line 1801 xfs_lookup( |
| int error; | int error; |
| uint lock_mode; | uint lock_mode; |
| vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(dp); |
| if (XFS_FORCED_SHUTDOWN(dp->i_mount)) | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) |
| return XFS_ERROR(EIO); | return XFS_ERROR(EIO); |
| Line 1811 xfs_lookup( | Line 1810 xfs_lookup( |
| error = xfs_dir_lookup_int(dp, lock_mode, dentry, &e_inum, &ip); | error = xfs_dir_lookup_int(dp, lock_mode, dentry, &e_inum, &ip); |
| if (!error) { | if (!error) { |
| *vpp = XFS_ITOV(ip); | *vpp = XFS_ITOV(ip); |
| ITRACE(ip); | xfs_itrace_ref(ip); |
| } | } |
| xfs_iunlock_map_shared(dp, lock_mode); | xfs_iunlock_map_shared(dp, lock_mode); |
| return error; | return error; |
| Line 1846 xfs_create( | Line 1845 xfs_create( |
| int namelen; | int namelen; |
| ASSERT(!*vpp); | ASSERT(!*vpp); |
| vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(dp); |
| dm_di_mode = vap->va_mode; | dm_di_mode = vap->va_mode; |
| namelen = VNAMELEN(dentry); | namelen = VNAMELEN(dentry); |
| Line 1932 xfs_create( | Line 1931 xfs_create( |
| goto error_return; | goto error_return; |
| goto abort_return; | goto abort_return; |
| } | } |
| ITRACE(ip); | xfs_itrace_ref(ip); |
| /* | /* |
| * At this point, we've gotten a newly allocated inode. | * At this point, we've gotten a newly allocated inode. |
| Line 2100 again: | Line 2099 again: |
| e_inum = ip->i_ino; | e_inum = ip->i_ino; |
| ITRACE(ip); | xfs_itrace_ref(ip); |
| /* | /* |
| * We want to lock in increasing inum. Since we've already | * We want to lock in increasing inum. Since we've already |
| Line 2323 xfs_remove( | Line 2322 xfs_remove( |
| uint resblks; | uint resblks; |
| int namelen; | int namelen; |
| vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(dp); |
| if (XFS_FORCED_SHUTDOWN(mp)) | if (XFS_FORCED_SHUTDOWN(mp)) |
| return XFS_ERROR(EIO); | return XFS_ERROR(EIO); |
| Line 2366 xfs_remove( | Line 2365 xfs_remove( |
| dm_di_mode = ip->i_d.di_mode; | dm_di_mode = ip->i_d.di_mode; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| xfs_itrace_ref(ip); | |
| ITRACE(ip); | |
| error = XFS_QM_DQATTACH(mp, dp, 0); | error = XFS_QM_DQATTACH(mp, dp, 0); |
| if (!error && dp != ip) | if (!error && dp != ip) |
| Line 2500 xfs_remove( | Line 2498 xfs_remove( |
| if (link_zero && xfs_inode_is_filestream(ip)) | if (link_zero && xfs_inode_is_filestream(ip)) |
| xfs_filestream_deassociate(ip); | xfs_filestream_deassociate(ip); |
| vn_trace_exit(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_exit(ip); |
| IRELE(ip); | IRELE(ip); |
| /* Fall through to std_return with error = 0 */ | /* Fall through to std_return with error = 0 */ |
| Line 2564 xfs_link( | Line 2561 xfs_link( |
| char *target_name = VNAME(dentry); | char *target_name = VNAME(dentry); |
| int target_namelen; | int target_namelen; |
| vn_trace_entry(tdp, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(tdp); |
| vn_trace_entry(xfs_vtoi(src_vp), __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(xfs_vtoi(src_vp)); |
| target_namelen = VNAMELEN(dentry); | target_namelen = VNAMELEN(dentry); |
| ASSERT(!VN_ISDIR(src_vp)); | ASSERT(!VN_ISDIR(src_vp)); |
| Line 2748 xfs_mkdir( | Line 2745 xfs_mkdir( |
| /* Return through std_return after this point. */ | /* Return through std_return after this point. */ |
| vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(dp); |
| mp = dp->i_mount; | mp = dp->i_mount; |
| udqp = gdqp = NULL; | udqp = gdqp = NULL; |
| Line 2816 xfs_mkdir( | Line 2813 xfs_mkdir( |
| goto error_return; | goto error_return; |
| goto abort_return; | goto abort_return; |
| } | } |
| ITRACE(cdp); | xfs_itrace_ref(cdp); |
| /* | /* |
| * Now we add the directory inode to the transaction. | * Now we add the directory inode to the transaction. |
| Line 2942 xfs_rmdir( | Line 2939 xfs_rmdir( |
| int last_cdp_link; | int last_cdp_link; |
| uint resblks; | uint resblks; |
| vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(dp); |
| if (XFS_FORCED_SHUTDOWN(mp)) | if (XFS_FORCED_SHUTDOWN(mp)) |
| return XFS_ERROR(EIO); | return XFS_ERROR(EIO); |
| Line 3047 xfs_rmdir( | Line 3044 xfs_rmdir( |
| VN_HOLD(dir_vp); | VN_HOLD(dir_vp); |
| } | } |
| ITRACE(cdp); | xfs_itrace_ref(cdp); |
| xfs_trans_ijoin(tp, cdp, XFS_ILOCK_EXCL); | xfs_trans_ijoin(tp, cdp, XFS_ILOCK_EXCL); |
| ASSERT(cdp->i_d.di_nlink >= 2); | ASSERT(cdp->i_d.di_nlink >= 2); |
| Line 3195 xfs_symlink( | Line 3192 xfs_symlink( |
| ip = NULL; | ip = NULL; |
| tp = NULL; | tp = NULL; |
| vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(dp); |
| if (XFS_FORCED_SHUTDOWN(mp)) | if (XFS_FORCED_SHUTDOWN(mp)) |
| return XFS_ERROR(EIO); | return XFS_ERROR(EIO); |
| Line 3325 xfs_symlink( | Line 3321 xfs_symlink( |
| goto error_return; | goto error_return; |
| goto error1; | goto error1; |
| } | } |
| ITRACE(ip); | xfs_itrace_ref(ip); |
| /* | /* |
| * An error after we've joined dp to the transaction will result in the | * An error after we've joined dp to the transaction will result in the |
| Line 3487 xfs_fid2( | Line 3483 xfs_fid2( |
| { | { |
| xfs_fid2_t *xfid = (xfs_fid2_t *)fidp; | xfs_fid2_t *xfid = (xfs_fid2_t *)fidp; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| ASSERT(sizeof(fid_t) >= sizeof(xfs_fid2_t)); | ASSERT(sizeof(fid_t) >= sizeof(xfs_fid2_t)); |
| xfid->fid_len = sizeof(xfs_fid2_t) - sizeof(xfid->fid_len); | xfid->fid_len = sizeof(xfs_fid2_t) - sizeof(xfid->fid_len); |
| Line 3669 xfs_reclaim( | Line 3665 xfs_reclaim( |
| { | { |
| bhv_vnode_t *vp = XFS_ITOV(ip); | bhv_vnode_t *vp = XFS_ITOV(ip); |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| ASSERT(!VN_MAPPED(vp)); | ASSERT(!VN_MAPPED(vp)); |
| Line 3887 xfs_alloc_file_space( | Line 3883 xfs_alloc_file_space( |
| int committed; | int committed; |
| int error; | int error; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| if (XFS_FORCED_SHUTDOWN(mp)) | if (XFS_FORCED_SHUTDOWN(mp)) |
| return XFS_ERROR(EIO); | return XFS_ERROR(EIO); |
| Line 4157 xfs_free_file_space( | Line 4153 xfs_free_file_space( |
| vp = XFS_ITOV(ip); | vp = XFS_ITOV(ip); |
| mp = ip->i_mount; | mp = ip->i_mount; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| if ((error = XFS_QM_DQATTACH(mp, ip, 0))) | if ((error = XFS_QM_DQATTACH(mp, ip, 0))) |
| return error; | return error; |
| Line 4363 xfs_change_file_space( | Line 4359 xfs_change_file_space( |
| xfs_trans_t *tp; | xfs_trans_t *tp; |
| bhv_vattr_t va; | bhv_vattr_t va; |
| vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); | xfs_itrace_entry(ip); |
| /* | /* |
| * must be a regular file and have write permission | * must be a regular file and have write permission |