diff options
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 0116ce1ad59e..36318c66a7bf 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -3284,37 +3284,6 @@ xfs_rmdir( | |||
3284 | goto std_return; | 3284 | goto std_return; |
3285 | } | 3285 | } |
3286 | 3286 | ||
3287 | |||
3288 | /* | ||
3289 | * Read dp's entries starting at uiop->uio_offset and translate them into | ||
3290 | * bufsize bytes worth of struct dirents starting at bufbase. | ||
3291 | */ | ||
3292 | STATIC int | ||
3293 | xfs_readdir( | ||
3294 | bhv_desc_t *dir_bdp, | ||
3295 | uio_t *uiop, | ||
3296 | cred_t *credp, | ||
3297 | int *eofp) | ||
3298 | { | ||
3299 | xfs_inode_t *dp; | ||
3300 | xfs_trans_t *tp = NULL; | ||
3301 | int error = 0; | ||
3302 | uint lock_mode; | ||
3303 | |||
3304 | vn_trace_entry(BHV_TO_VNODE(dir_bdp), __FUNCTION__, | ||
3305 | (inst_t *)__return_address); | ||
3306 | dp = XFS_BHVTOI(dir_bdp); | ||
3307 | |||
3308 | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) | ||
3309 | return XFS_ERROR(EIO); | ||
3310 | |||
3311 | lock_mode = xfs_ilock_map_shared(dp); | ||
3312 | error = xfs_dir_getdents(tp, dp, uiop, eofp); | ||
3313 | xfs_iunlock_map_shared(dp, lock_mode); | ||
3314 | return error; | ||
3315 | } | ||
3316 | |||
3317 | |||
3318 | STATIC int | 3287 | STATIC int |
3319 | xfs_symlink( | 3288 | xfs_symlink( |
3320 | bhv_desc_t *dir_bdp, | 3289 | bhv_desc_t *dir_bdp, |