[PATCH] Re: NFS "dev_t" issues..

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Tue Jan 01 2002 - 18:04:26 EST


Linus,

What do you think about the attached simple patch, making the cookie
size more explicit?

I was looking at fixing up reiserfs, which already has 32-bit storage
for dev_t on-disk, and the following change came to mind.

-- 
Jeff Garzik      | Only so many songs can be sung
Building 1024    | with two lips, two lungs, and one tongue.
MandrakeSoft     |         - nomeansno

Index: include/linux/kdev_t.h =================================================================== RCS file: /cvsroot/gkernel/linux_2_5/include/linux/kdev_t.h,v retrieving revision 1.2 diff -u -r1.2 kdev_t.h --- include/linux/kdev_t.h 2002/01/01 22:41:11 1.2 +++ include/linux/kdev_t.h 2002/01/01 23:02:10 @@ -86,7 +86,7 @@ * internal equality comparisons and for things * like NFS filehandle conversion. */ -static inline unsigned int kdev_val(kdev_t dev) +static inline u32 kdev_val(kdev_t dev) { return dev.value; }

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:15 EST