projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4946ff
)
a bug in ramfs_nommu_resize function, passing old size to vmtruncate
author
Bryan Wu
<bryan.wu@analog.com>
Thu, 31 May 2007 03:31:55 +0000
(11:31 +0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Thu, 31 May 2007 03:54:07 +0000
(20:54 -0700)
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
patch
|
blob
|
blame
|
history
diff --git
a/fs/ramfs/file-nommu.c
b/fs/ramfs/file-nommu.c
index 3b481d557edbd01df82c18d5cbef6386fa862bf1..9345a46ffb325f3dda57a0aeb048e3428475ad0c 100644
(file)
--- 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,
new
size);
return ret;
}