Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76063
b: refs/heads/master
c: 1af5357
h: refs/heads/master
i:
  76061: 29b00db
  76059: 9706548
  76055: 7cc28de
  76047: 7adcd5b
  76031: 8e74306
v: v3
  • Loading branch information
Steven Whitehouse committed Jan 25, 2008
1 parent 585c8fd commit cc6e726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 05220535196d413db434527a3edcba79b7187df8
refs/heads/master: 1af535727bbf68e1da7ac232de47315da4c66ade
4 changes: 2 additions & 2 deletions trunk/fs/gfs2/bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,10 +1222,10 @@ int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
do_div(lblock_stop, bsize);
} else {
unsigned int shift = sdp->sd_sb.sb_bsize_shift;
u64 end_of_file = (ip->i_di.di_size + sdp->sd_sb.sb_bsize - 1) >> 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 */
if (lblock_stop > end_of_file) {
*alloc_required = 1;
return 0;
}
Expand Down

0 comments on commit cc6e726

Please sign in to comment.