Lines Matching refs:tmp_stat
307 struct osf_statfs tmp_stat;
309 tmp_stat.f_type = linux_stat->f_type;
310 tmp_stat.f_flags = 0; /* mount flags */
311 tmp_stat.f_fsize = linux_stat->f_frsize;
312 tmp_stat.f_bsize = linux_stat->f_bsize;
313 tmp_stat.f_blocks = linux_stat->f_blocks;
314 tmp_stat.f_bfree = linux_stat->f_bfree;
315 tmp_stat.f_bavail = linux_stat->f_bavail;
316 tmp_stat.f_files = linux_stat->f_files;
317 tmp_stat.f_ffree = linux_stat->f_ffree;
318 tmp_stat.f_fsid = linux_stat->f_fsid;
319 if (bufsiz > sizeof(tmp_stat))
320 bufsiz = sizeof(tmp_stat);
321 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0;
328 struct osf_statfs64 tmp_stat = { 0 };
330 tmp_stat.f_type = linux_stat->f_type;
331 tmp_stat.f_fsize = linux_stat->f_frsize;
332 tmp_stat.f_bsize = linux_stat->f_bsize;
333 tmp_stat.f_blocks = linux_stat->f_blocks;
334 tmp_stat.f_bfree = linux_stat->f_bfree;
335 tmp_stat.f_bavail = linux_stat->f_bavail;
336 tmp_stat.f_files = linux_stat->f_files;
337 tmp_stat.f_ffree = linux_stat->f_ffree;
338 tmp_stat.f_fsid = linux_stat->f_fsid;
339 if (bufsiz > sizeof(tmp_stat))
340 bufsiz = sizeof(tmp_stat);
341 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0;