[GFS2] Fix bug in directory code
This was a nasty bug which resulted in corruption of hash tables
in the directory code with larger directories. We forgot to
increment a pointer in the read/write routines internal to the
directory code.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c
index 563b99e..76a23c1 100644
--- a/fs/gfs2/dir.c
+++ b/fs/gfs2/dir.c
@@ -215,6 +215,7 @@
if (error)
goto fail;
+ buf += amount;
copied += amount;
lblock++;
dblock++;
@@ -335,6 +336,7 @@
if (error)
goto fail;
+ buf += amount;
copied += amount;
lblock++;