linux-kernel.vger.kernel.org archive mirror
 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 related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2.6.15] do_truncate() call fix in tiny-shmem.c
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Mackall @ 2006-01-12  6:11 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: linux-kernel, hugh, akpm

On Wed, Jan 11, 2006 at 12:54:18PM +0000, Catalin Marinas wrote:
> From: Catalin Marinas <catalin.marinas@arm.com>
> 
> This is a simple patch to adapt tiny-shmem.c to the new do_truncate()
> prototype.

It's probably right, and Hugh came up with the same thing. I'm on a
a random hillside in rural New Zealand, so I haven't properly looked
it over, but I'll give it a tentative ACK to get things going.
 
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

Acked-by: Matt Mackall <mpm@selenic.com>

-- 
Mathematics is the supreme nostalgia of our time.

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

* Re: [PATCH 2.6.15] do_truncate() call fix in tiny-shmem.c
  2006-01-12  6:11 ` Matt Mackall
@ 2006-01-12  6:47   ` Hugh Dickins
  0 siblings, 0 replies; 3+ messages in thread
From: Hugh Dickins @ 2006-01-12  6:47 UTC (permalink / raw)
  To: Matt Mackall; +Cc: Catalin Marinas, linux-kernel, akpm

On Thu, 12 Jan 2006, Matt Mackall wrote:
> On Wed, Jan 11, 2006 at 12:54:18PM +0000, Catalin Marinas wrote:
> > From: Catalin Marinas <catalin.marinas@arm.com>
> > 
> > This is a simple patch to adapt tiny-shmem.c to the new do_truncate()
> > prototype.
> 
> It's probably right, and Hugh came up with the same thing. I'm on a
> a random hillside in rural New Zealand, so I haven't properly looked
> it over, but I'll give it a tentative ACK to get things going.
>  
> > Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> 
> Acked-by: Matt Mackall <mpm@selenic.com>

Acked-by: Hugh Dickins <hugh@veritas.com>

^ 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;
as well as URLs for NNTP newsgroup(s).