do_truncate() call fix in tiny-shmem.c
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
@@ -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;
Quoted 4 lines · Catalin Marinas
From: Catalin Marinas <[email protected]>
This is a simple patch to adapt
tiny-shmem.cto the newdo_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
Signed-off-by Catalin Marinas <[email protected]>
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Hugh Dickins
Acked-byQuoted 6 lines · Matt Mackall
Quoted 4 lines · Catalin Marinas
From: Catalin Marinas <[email protected]>
This is a simple patch to adapt
tiny-shmem.cto the newdo_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
Signed-off-by Catalin Marinas <[email protected]>Acked-by Matt Mackall <[email protected]>