aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/gfs2/ops_address.c1
-rw-r--r--fs/gfs2/rgrp.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index bdf56cf66224..99c933762eb2 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -385,6 +385,7 @@ static int gfs2_prepare_write(struct file *file, struct page *page,
385 goto out_unlock; 385 goto out_unlock;
386 386
387 387
388 ip->i_alloc.al_requested = 0;
388 if (alloc_required) { 389 if (alloc_required) {
389 al = gfs2_alloc_get(ip); 390 al = gfs2_alloc_get(ip);
390 391
diff --git a/fs/gfs2/rgrp.h b/fs/gfs2/rgrp.h
index 9eedfd12bfff..b01e0cfc99b5 100644
--- a/fs/gfs2/rgrp.h
+++ b/fs/gfs2/rgrp.h
@@ -32,7 +32,7 @@ void gfs2_rgrp_repolish_clones(struct gfs2_rgrpd *rgd);
32struct gfs2_alloc *gfs2_alloc_get(struct gfs2_inode *ip); 32struct gfs2_alloc *gfs2_alloc_get(struct gfs2_inode *ip);
33static inline void gfs2_alloc_put(struct gfs2_inode *ip) 33static inline void gfs2_alloc_put(struct gfs2_inode *ip)
34{ 34{
35 return; /* Se we can see where ip->i_alloc is used */ 35 return; /* So we can see where ip->i_alloc is used */
36} 36}
37 37
38int gfs2_inplace_reserve_i(struct gfs2_inode *ip, 38int gfs2_inplace_reserve_i(struct gfs2_inode *ip,