Commit:     3f0a6766e0cc5a577805732e5adb50a585c58175
Parent:     b4946ffb1860597b187d78d61ac6504177eb0ff8
Author:     Bryan Wu <[EMAIL PROTECTED]>
AuthorDate: Thu May 31 11:31:55 2007 +0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 30 20:54:07 2007 -0700

    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 <[EMAIL PROTECTED]>
    Cc: David Howells <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/ramfs/file-nommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c
index 3b481d5..9345a46 100644
--- a/fs/ramfs/file-nommu.c
+++ b/fs/ramfs/file-nommu.c
@@ -179,7 +179,7 @@ static int ramfs_nommu_resize(struct inode *inode, loff_t 
newsize, loff_t size)
                        return ret;
-       ret = vmtruncate(inode, size);
+       ret = vmtruncate(inode, newsize);
        return ret;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to