From: Steven Whitehouse Date: Tue, 1 Aug 2006 19:28:57 +0000 (-0400) Subject: [GFS2] Fix bug in directory code X-Git-Tag: v2.6.19-rc1~32^2~114 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=899bb264507cfed83922bf14cd66a073494601ba;p=karo-tx-linux.git [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 --- 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, 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++;