Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84483
b: refs/heads/master
c: 199037c
h: refs/heads/master
i:
  84481: 3b90a03
  84479: e30caf1
v: v3
  • Loading branch information
Christoph Hellwig authored and Lachlan McIlroy committed Feb 7, 2008
1 parent 0cfe6c8 commit 9468d4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9742bb93da27737fe490eab2af9fba1efa243dcb
refs/heads/master: 199037c598daf5f3602dace68c331665a4f4f0c1
12 changes: 0 additions & 12 deletions trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9468d4c

Please sign in to comment.