/* 31 bit emulation wrapper functions for sys_fadvise64/fadvise64_64. These need to rewrite the advise values for POSIX_FADV_{DONTNEED,NOREUSE} because the 31 bit values differ from the 64 bit values.  */
asmlinkage long sys32_fadvise64(int fd, loff_t offset, size_t len, int advise)
/* 31 bit emulation wrapper functions for sys_fadvise64/fadvise64_64. These need to rewrite the advise values for POSIX_FADV_{DONTNEED,NOREUSE} because the 31 bit values differ from the 64 bit values.  */
asmlinkage long sys32_fadvise64(int fd, loff_t offset, size_t len, int advise)
{
	if (advise == 4)
		advise = POSIX_FADV_DONTNEED;
	else if (advise == 5)
		advise = POSIX_FADV_NOREUSE;
	return sys_fadvise64(fd, offset, len, advise);
}