/* The following statfs calls are copies of code from fs/open.c and should be checked against those from time to time  */
asmlinkage long compat_sys_statfs(const char __user *pathname, struct compat_statfs __user *buf)
/* The following statfs calls are copies of code from fs/open.c and should be checked against those from time to time  */
asmlinkage long compat_sys_statfs(const char __user *pathname, struct compat_statfs __user *buf)
{
	struct path path;
	int error;
	error = user_path(pathname, &path);
	if (!error) {
		struct kstatfs tmp;
		error = vfs_statfs(path.dentry, &tmp);
		if (!error)
			error = put_compat_statfs(buf, &tmp);
		path_put(&path);
	}
	return error;
}