]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: fix memset byte count during resize
authorJeff Mahoney <jeffm@suse.com>
Fri, 19 Oct 2007 06:39:25 +0000 (23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:35 +0000 (11:53 -0700)
commit5c47a97c50bcf7f3a5757a36a37cb762a88556c0
treed2c157ad57296e27f0d5bcc89fdb33f209b8b6c9
parent1987314be6eba0c77bca7a4da782b5a18bb163a7
reiserfs: fix memset byte count during resize

Correct the memset in reiserfs_resize to clear the memory allocated for the
new bitmap info structs.  Previously, it would clear the memory used by the
old size.  Depending on the contents of memory, this could cause incorrect
caching behavior for bitmap blocks in the newly allocated area.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/resize.c