Re: [PATCH v2] fs: make d_path-like functions all have unsigned size

From: Matthew Wilcox
Date: Tue Jul 27 2021 - 09:16:46 EST

On Tue, Jul 27, 2021 at 02:56:53PM +0200, Greg Kroah-Hartman wrote:
> And my mistake from earlier, size_t is the same as unsigned int, not
> unsigned long.


include/linux/types.h:typedef __kernel_size_t size_t;


#ifndef __kernel_size_t
#if __BITS_PER_LONG != 64
typedef unsigned int __kernel_size_t;
typedef __kernel_ulong_t __kernel_size_t;

size_t is an unsigned long on 64-bit, unless otherwise defined by the