mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.15] do_truncate() call fix in tiny-shmem.c
@ 2006-01-11 12:54 Catalin Marinas
  2006-01-12  6:11 ` Matt Mackall
  0 siblings, 1 reply; 3+ messages in thread
From: Catalin Marinas @ 2006-01-11 12:54 UTC (permalink / raw)
  To: mpm; +Cc: linux-kernel

From: Catalin Marinas <catalin.marinas@arm.com>

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

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

 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;
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-12  6:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-11 12:54 [PATCH 2.6.15] do_truncate() call fix in tiny-shmem.c Catalin Marinas
2006-01-12  6:11 ` Matt Mackall
2006-01-12  6:47   ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®