]> git.baikalelectronics.ru Git - kernel.git/commit
a bug in ramfs_nommu_resize function, passing old size to vmtruncate
authorBryan Wu <bryan.wu@analog.com>
Thu, 31 May 2007 03:31:55 +0000 (11:31 +0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 31 May 2007 03:54:07 +0000 (20:54 -0700)
commit272af365e7bbe0662a781b87264129ba629719b9
tree3bf7db1b2c4c7a30505c2ff5aa5d8da6b51504d6
parent48227311725ab82897cbd6c5f5ecd796ea35daa7
a bug in ramfs_nommu_resize function, passing old size to vmtruncate

It should be pass "newsize" to vmtruncate function to modify the
inode->i_size, while the old size is passed to vmtruncate.

This bug was caught by LTP truncate test case on Blackfin platform.
After it was fixed, the LTP truncate test case passed.

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ramfs/file-nommu.c