diff options
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 6b71d9f763c7..076555e8763f 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -4317,21 +4317,9 @@ xfs_change_file_space( | |||
4317 | 4317 | ||
4318 | xfs_itrace_entry(ip); | 4318 | xfs_itrace_entry(ip); |
4319 | 4319 | ||
4320 | /* | ||
4321 | * must be a regular file and have write permission | ||
4322 | */ | ||
4323 | if (!S_ISREG(ip->i_d.di_mode)) | 4320 | if (!S_ISREG(ip->i_d.di_mode)) |
4324 | return XFS_ERROR(EINVAL); | 4321 | return XFS_ERROR(EINVAL); |
4325 | 4322 | ||
4326 | xfs_ilock(ip, XFS_ILOCK_SHARED); | ||
4327 | |||
4328 | if ((error = xfs_iaccess(ip, S_IWUSR, credp))) { | ||
4329 | xfs_iunlock(ip, XFS_ILOCK_SHARED); | ||
4330 | return error; | ||
4331 | } | ||
4332 | |||
4333 | xfs_iunlock(ip, XFS_ILOCK_SHARED); | ||
4334 | |||
4335 | switch (bf->l_whence) { | 4323 | switch (bf->l_whence) { |
4336 | case 0: /*SEEK_SET*/ | 4324 | case 0: /*SEEK_SET*/ |
4337 | break; | 4325 | break; |