ANDROID: vfs: Missed updating truncate to truncate2
Bug: 30954918 Change-Id: I8163d3f86dd7aadb2ab3fc11816754f331986f05 Signed-off-by: Daniel Rosenberg <drosen@google.com> Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
parent
0ad77ce4d9
commit
6fae74fbc8
|
@ -2244,7 +2244,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_truncate2(path->mnt, path->dentry, 0,
|
||||
ATTR_MTIME|ATTR_CTIME|ATTR_OPEN,
|
||||
filp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue