Commit 899bb264 authored by Steven Whitehouse's avatar Steven Whitehouse

[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: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent de9b75d3
......@@ -215,6 +215,7 @@ static int gfs2_dir_write_data(struct gfs2_inode *ip, const char *buf,
if (error)
goto fail;
buf += amount;
copied += amount;
lblock++;
dblock++;
......@@ -335,6 +336,7 @@ static int gfs2_dir_read_data(struct gfs2_inode *ip, char *buf,
if (error)
goto fail;
buf += amount;
copied += amount;
lblock++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment