diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2006-01-12 04:05:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:49 -0500 |
commit | 2a7e2f7dcb81279e73aefb691ea55ab3540e408a (patch) | |
tree | 7b9a3568694750bb141a8797415e883f79f90030 /mm | |
parent | f4598c8b3678abd65be3be00ed3d046375a4777e (diff) |
[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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/tiny-shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
90 | file->f_mode = FMODE_WRITE | FMODE_READ; | 90 | file->f_mode = FMODE_WRITE | FMODE_READ; |
91 | 91 | ||
92 | /* notify everyone as to the change of file size */ | 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 | if (error < 0) | 94 | if (error < 0) |
95 | goto close_file; | 95 | goto close_file; |
96 | 96 | ||