projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'linux-2.6.33'
[cascardo/linux.git]
/
fs
/
gfs2
/
bmap.c
diff --git
a/fs/gfs2/bmap.c
b/fs/gfs2/bmap.c
index
6d47379
..
583e823
100644
(file)
--- a/
fs/gfs2/bmap.c
+++ b/
fs/gfs2/bmap.c
@@
-541,7
+541,7
@@
static int gfs2_bmap_alloc(struct inode *inode, const sector_t lblock,
*ptr++ = cpu_to_be64(bn++);
break;
}
- } while (
state != ALLOC_DATA
);
+ } while (
(state != ALLOC_DATA) || !dblock
);
ip->i_height = height;
gfs2_add_inode_blocks(&ip->i_inode, alloced);