Skip to content

Commit

Permalink
[PATCH] do_truncate() call fix in tiny-shmem.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ctmarinas authored and Linus Torvalds committed Jan 12, 2006
1 parent f4598c8 commit 2a7e2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/tiny-shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2a7e2f7

Please sign in to comment.