Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286042
b: refs/heads/master
c: 5bf1f26
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Ben Myers committed Jan 17, 2012
1 parent 00e6917 commit d132e93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 2813d682e8e6a278f94817429afd46b30875bb6e
refs/heads/master: 5bf1f26227a59b9634e95eb3c7c012b766e5e6a0
7 changes: 4 additions & 3 deletions trunk/fs/xfs/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ xfs_zero_eof(
/*
* Common pre-write limit and setup checks.
*
* Returns with iolock held according to @iolock.
* Called with the iolocked held either shared and exclusive according to
* @iolock, and returns with it held. Might upgrade the iolock to exclusive
* if called for a direct write beyond i_size.
*/
STATIC ssize_t
xfs_file_aio_write_checks(
Expand All @@ -653,8 +655,7 @@ xfs_file_aio_write_checks(
restart:
error = generic_write_checks(file, pos, count, S_ISBLK(inode->i_mode));
if (error) {
xfs_rw_iunlock(ip, XFS_ILOCK_EXCL | *iolock);
*iolock = 0;
xfs_rw_iunlock(ip, XFS_ILOCK_EXCL);
return error;
}

Expand Down

0 comments on commit d132e93

Please sign in to comment.