diff options
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r-- | fs/gfs2/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 563b99e419b6..76a23c172eeb 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c | |||
@@ -215,6 +215,7 @@ static int gfs2_dir_write_data(struct gfs2_inode *ip, const char *buf, | |||
215 | if (error) | 215 | if (error) |
216 | goto fail; | 216 | goto fail; |
217 | 217 | ||
218 | buf += amount; | ||
218 | copied += amount; | 219 | copied += amount; |
219 | lblock++; | 220 | lblock++; |
220 | dblock++; | 221 | dblock++; |
@@ -335,6 +336,7 @@ static int gfs2_dir_read_data(struct gfs2_inode *ip, char *buf, | |||
335 | if (error) | 336 | if (error) |
336 | goto fail; | 337 | goto fail; |
337 | 338 | ||
339 | buf += amount; | ||
338 | copied += amount; | 340 | copied += amount; |
339 | lblock++; | 341 | lblock++; |
340 | 342 | ||