projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b24d7
)
GFS2: Correctly set goal block after allocation
author
Steven Whitehouse
<swhiteho@redhat.com>
Wed, 7 Sep 2011 11:15:23 +0000
(12:15 +0100)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Fri, 21 Oct 2011 11:39:42 +0000
(12:39 +0100)
The new goal block should be set to the end of the newly
allocated extent, not the start of it.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/rgrp.c
b/fs/gfs2/rgrp.c
index 3088fb25656d64fd113b7550c1ce95eab8a6cb10..8ec41744594bb30c59167defcc105af868cbbf88 100644
(file)
--- a/
fs/gfs2/rgrp.c
+++ b/
fs/gfs2/rgrp.c
@@
-1346,7
+1346,7
@@
int gfs2_alloc_block(struct gfs2_inode *ip, u64 *bn, unsigned int *n)
rgd->rd_last_alloc = blk;
block = rgd->rd_data0 + blk;
- ip->i_goal = block;
+ ip->i_goal = block
+ *n - 1
;
error = gfs2_meta_inode_buffer(ip, &dibh);
if (error == 0) {
struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data;