Skip to contentSkip to conversation

do_truncate() call fix in tiny-shmem.c

PATCH In review Catalin Marinas 3 participants 3 messages Jan 11, 2006 – Jan 12, 2006 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 do_truncate() call fix in tiny-shmem.c

From: Catalin Marinas <[email protected]>

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

---

 mm/tiny-shmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/tiny-shmem.c +1 -1
index cdc6d43..f9d6a9c 100644
@@ -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;
 
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Catalin Marinas

From: Catalin Marinas <[email protected]>

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.

Quoted 1 line
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Acked-by
#2 lore raw
Quoted 6 lines · Matt Mackall
Quoted 4 lines · Catalin Marinas

From: Catalin Marinas <[email protected]>

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

Quoted 7 lines

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.

Quoted 1 line