Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339400
b: refs/heads/master
c: 40165e2
h: refs/heads/master
v: v3
  • Loading branch information
Brian Foster authored and Ben Myers committed Nov 8, 2012
1 parent ec17f7f commit 206cb4a
Show file tree
Hide file tree
Showing 3 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: 72b53efa4a6125a4c334871c58268c430605819a
refs/heads/master: 40165e27617e2a98bf8588001d2f2872fae2fee2
6 changes: 3 additions & 3 deletions trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ xfs_readlink(
* when the link count isn't zero and by xfs_dm_punch_hole() when
* punching a hole to EOF.
*/
STATIC int
int
xfs_free_eofblocks(
xfs_mount_t *mp,
xfs_inode_t *ip,
Expand Down Expand Up @@ -200,7 +200,7 @@ xfs_free_eofblocks(
if (need_iolock) {
if (!xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) {
xfs_trans_cancel(tp, 0);
return 0;
return EAGAIN;
}
}

Expand Down Expand Up @@ -463,7 +463,7 @@ xfs_release(
return 0;

error = xfs_free_eofblocks(mp, ip, true);
if (error)
if (error && error != EAGAIN)
return error;

/* delalloc blocks after truncation means it really is dirty */
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/xfs/xfs_vnodeops.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ int xfs_flush_pages(struct xfs_inode *ip, xfs_off_t first,
int xfs_wait_on_pages(struct xfs_inode *ip, xfs_off_t first, xfs_off_t last);

int xfs_zero_eof(struct xfs_inode *, xfs_off_t, xfs_fsize_t);
int xfs_free_eofblocks(struct xfs_mount *, struct xfs_inode *, bool);

#endif /* _XFS_VNODEOPS_H */

0 comments on commit 206cb4a

Please sign in to comment.