projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d506848
)
logfs: drop vmtruncate
author
Marco Stornelli
<marco.stornelli@gmail.com>
Sat, 15 Dec 2012 10:55:42 +0000
(11:55 +0100)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 20 Dec 2012 23:40:53 +0000
(18:40 -0500)
Removed vmtruncate
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/logfs/readwrite.c
patch
|
blob
|
history
diff --git
a/fs/logfs/readwrite.c
b/fs/logfs/readwrite.c
index
e1a3b6b
..
9a59cba
100644
(file)
--- a/
fs/logfs/readwrite.c
+++ b/
fs/logfs/readwrite.c
@@
-1887,9
+1887,15
@@
int logfs_truncate(struct inode *inode, u64 target)
logfs_put_wblocks(sb, NULL, 1);
}
- if (!err)
- err = vmtruncate(inode, target);
+ if (!err) {
+ err = inode_newsize_ok(inode, target);
+ if (err)
+ goto out;
+
+ truncate_setsize(inode, target);
+ }
+ out:
/* I don't trust error recovery yet. */
WARN_ON(err);
return err;