projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39ec243
)
ANDROID: vfs: Missed updating truncate to truncate2
author
Daniel Rosenberg
<drosen@google.com>
Wed, 28 Dec 2016 00:36:40 +0000
(16:36 -0800)
committer
Stricted
<info@stricted.net>
Thu, 11 Oct 2018 16:03:48 +0000
(18:03 +0200)
Bug:
30954918
Change-Id: I8163d3f86dd7aadb2ab3fc11816754f331986f05
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index 91760287d45243c0bae1cb3e7a3ca22adfdf70a8..31710ee3ba4ff19498e924c25a568484b789643e 100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-2425,7
+2425,7
@@
static int handle_truncate(struct file *filp)
if (!error)
error = security_path_truncate(path);
if (!error) {
- error = do_truncate
(
path->dentry, 0,
+ error = do_truncate
2(path->mnt,
path->dentry, 0,
ATTR_MTIME|ATTR_CTIME|ATTR_OPEN,
filp);
}