Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109899
b: refs/heads/master
c: 364f358
h: refs/heads/master
i:
  109897: 54c5f38
  109895: 049ffed
v: v3
  • Loading branch information
Lachlan McIlroy authored and Lachlan McIlroy committed Sep 17, 2008
1 parent 9088e45 commit a20753a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6efdf281777eb07fac28ac2b2d7df1e619ee6da1
refs/heads/master: 364f358a734ddcd827c662ccbfa58ee3ac510762
4 changes: 4 additions & 0 deletions trunk/fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,10 @@ __xfs_get_blocks(
offset = (xfs_off_t)iblock << inode->i_blkbits;
ASSERT(bh_result->b_size >= (1 << inode->i_blkbits));
size = bh_result->b_size;

if (!create && direct && offset >= i_size_read(inode))
return 0;

error = xfs_iomap(XFS_I(inode), offset, size,
create ? flags : BMAPI_READ, &iomap, &niomap);
if (error)
Expand Down

0 comments on commit a20753a

Please sign in to comment.