From: Catalin Marinas Date: Thu, 12 Jan 2006 09:05:21 +0000 (-0800) Subject: [PATCH] do_truncate() call fix in tiny-shmem.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a7e2f7dcb81279e73aefb691ea55ab3540e408a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] do_truncate() call fix in tiny-shmem.c Adapt tiny-shmem.c to the new do_truncate() prototype. Signed-off-by: Catalin Marinas Acked-by: Matt Mackall Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index cdc6d431972b..f9d6a9cc91c4 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c @@ -90,7 +90,7 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags) file->f_mode = FMODE_WRITE | FMODE_READ; /* notify everyone as to the change of file size */ - error = do_truncate(dentry, size, file); + error = do_truncate(dentry, size, 0, file); if (error < 0) goto close_file;