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

From: Catalin Marinas
Date: Wed Jan 11 2006 - 07:53:06 EST


From: Catalin Marinas <catalin.marinas@xxxxxxx>

This is a simple patch to adapt tiny-shmem.c to the new do_truncate()
prototype.

Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx>
---

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 cdc6d43..f9d6a9c 100644
--- a/mm/tiny-shmem.c
+++ b/mm/tiny-shmem.c
@@ -90,7 +90,7 @@ struct file *shmem_file_setup(char *name
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;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/