[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>
This commit is contained in:
Catalin Marinas 2006-01-12 01:05:21 -08:00 коммит произвёл Linus Torvalds
Родитель f4598c8b36
Коммит 2a7e2f7dcb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -90,7 +90,7 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
file->f_mode = FMODE_WRITE | FMODE_READ; file->f_mode = FMODE_WRITE | FMODE_READ;
/* notify everyone as to the change of file size */ /* 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) if (error < 0)
goto close_file; goto close_file;