X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=mm%2Ftiny-shmem.c;h=f9d6a9cc91c4bc806700c6119f45e34283abdeb7;hb=36679ea59846d8f34a48f71ca1a37671ca0ad3c5;hp=cdc6d431972b74c8aacd9e07ec32f95e73d5d55e;hpb=cc918c7ab7da017bfaf9661420bb5c462e057cfb;p=powerpc.git diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index cdc6d43197..f9d6a9cc91 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c @@ -90,7 +90,7 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags) 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;