Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76062
b: refs/heads/master
c: 0522053
h: refs/heads/master
v: v3
  • Loading branch information
Bob Peterson authored and Steven Whitehouse committed Jan 25, 2008
1 parent 29b00db commit 585c8fd
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 598278bd4808ed81b0e6fa445458a7d549f72a32
refs/heads/master: 05220535196d413db434527a3edcba79b7187df8
5 changes: 5 additions & 0 deletions trunk/fs/gfs2/bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,11 @@ int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
unsigned int shift = sdp->sd_sb.sb_bsize_shift;
lblock = offset >> shift;
lblock_stop = (offset + len + sdp->sd_sb.sb_bsize - 1) >> shift;
if (lblock_stop > ip->i_di.di_blocks) { /* writing past the
last block */
*alloc_required = 1;
return 0;
}
}

for (; lblock < lblock_stop; lblock += extlen) {
Expand Down

0 comments on commit 585c8fd

Please sign in to comment.