Skip to content

Commit

Permalink
[GFS2] Fix bug in directory code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Whitehouse committed Aug 1, 2006
1 parent de9b75d commit 899bb26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/gfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down Expand Up @@ -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++;

Expand Down

0 comments on commit 899bb26

Please sign in to comment.