aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/page.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/page.c')
-rw-r--r--fs/gfs2/page.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/page.c b/fs/gfs2/page.c
index a8165a693b56..b93caf294b9f 100644
--- a/fs/gfs2/page.c
+++ b/fs/gfs2/page.c
@@ -256,8 +256,7 @@ void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page,
256 struct buffer_head *bh; 256 struct buffer_head *bh;
257 unsigned int start, end; 257 unsigned int start, end;
258 258
259 for (bh = head, start = 0; 259 for (bh = head, start = 0; bh != head || !start;
260 bh != head || !start;
261 bh = bh->b_this_page, start = end) { 260 bh = bh->b_this_page, start = end) {
262 end = start + bsize; 261 end = start + bsize;
263 if (end <= from || start >= to) 262 if (end <= from || start >= to)