ANDROID: vfs: Missed updating truncate to truncate2
authorDaniel Rosenberg <drosen@google.com>
Wed, 28 Dec 2016 00:36:40 +0000 (16:36 -0800)
committerStricted <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

index 91760287d45243c0bae1cb3e7a3ca22adfdf70a8..31710ee3ba4ff19498e924c25a568484b789643e 100644 (file)
@@ -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_truncate2(path->mnt, path->dentry, 0,
                                    ATTR_MTIME|ATTR_CTIME|ATTR_OPEN,
                                    filp);
        }