From 9468d4cd8760cc993062a2a58148189c5b301532 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 5 Feb 2008 12:12:58 +1100 Subject: [PATCH] --- yaml --- r: 84483 b: refs/heads/master c: 199037c598daf5f3602dace68c331665a4f4f0c1 h: refs/heads/master i: 84481: 3b90a03be7f7fe7e26ce7527ed6e946ae396c7c2 84479: e30caf16271c4c0cce33cdb1335ce842cf1ef318 v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_vnodeops.c | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/[refs] b/[refs] index 711724ae0ede..c70c821ec1df 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9742bb93da27737fe490eab2af9fba1efa243dcb +refs/heads/master: 199037c598daf5f3602dace68c331665a4f4f0c1 diff --git a/trunk/fs/xfs/xfs_vnodeops.c b/trunk/fs/xfs/xfs_vnodeops.c index 6b71d9f763c7..076555e8763f 100644 --- a/trunk/fs/xfs/xfs_vnodeops.c +++ b/trunk/fs/xfs/xfs_vnodeops.c @@ -4317,21 +4317,9 @@ xfs_change_file_space( xfs_itrace_entry(ip); - /* - * must be a regular file and have write permission - */ if (!S_ISREG(ip->i_d.di_mode)) return XFS_ERROR(EINVAL); - xfs_ilock(ip, XFS_ILOCK_SHARED); - - if ((error = xfs_iaccess(ip, S_IWUSR, credp))) { - xfs_iunlock(ip, XFS_ILOCK_SHARED); - return error; - } - - xfs_iunlock(ip, XFS_ILOCK_SHARED); - switch (bf->l_whence) { case 0: /*SEEK_SET*/ break;