X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Ftiny-shmem.c;h=f9d6a9cc91c4bc806700c6119f45e34283abdeb7;hb=d7fa2589bbe7ab53fd5eb20e8c7e388d5aff6f16;hp=cdc6d431972b74c8aacd9e07ec32f95e73d5d55e;hpb=d99cf9d679a520d67f81d805b7cb91c68e1847f0;p=pandora-kernel.git diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index cdc6d431972b..f9d6a9cc91c4 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;