Commit 2a7e2f7d authored by Catalin Marinas's avatar Catalin Marinas Committed by Linus Torvalds

[PATCH] do_truncate() call fix in tiny-shmem.c

Adapt tiny-shmem.c to the new do_truncate() prototype.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Acked-by: default avatarMatt Mackall <mpm@selenic.com>
Acked-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f4598c8b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment