Commit 2a7e2f7dcb81279e73aefb691ea55ab3540e408a

Authored by Catalin Marinas
Committed by Linus Torvalds
1 parent f4598c8b36

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

Adapt tiny-shmem.c to the new do_truncate() prototype.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -90,7 +90,7 @@
90 90 file->f_mode = FMODE_WRITE | FMODE_READ;
91 91  
92 92 /* notify everyone as to the change of file size */
93   - error = do_truncate(dentry, size, file);
  93 + error = do_truncate(dentry, size, 0, file);
94 94 if (error < 0)
95 95 goto close_file;
96 96