]> Pileus Git - ~andy/linux/commit
[GFS2] fix inode meta data corruption
authorWendy Cheng <wcheng@redhat.com>
Fri, 24 Aug 2007 13:15:01 +0000 (09:15 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Oct 2007 07:55:51 +0000 (08:55 +0100)
commite9bd2b3bafd29bf75522546207f0bba0ec4515c2
treefac6201981d94d827390ba23fe8fe6afc2fb0119
parentc4f68a130fc1795e4a75ec5bdaf9e85d86c22419
[GFS2] fix inode meta data corruption

Fix a nasty inode meta data corruption issue by keeping the buffer head in
icache array. This buffer needs to stay in memory until journal flush occurs
Otherwise, gfs2_meta_inode_buffer could do a disk read before the inode hits
disk. It ends up with meta data corruptions. The buffer will be released as
part of the existing journal flush logic.

Signed-off-by: S. Wendy Cheng <wcheng@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c