[PATCH] Make in-kernel i_nlink field be unsigned int

From: David Kleikamp (shaggy@austin.ibm.com)
Date: Thu Sep 05 2002 - 16:04:10 EST


Marcelo,
This is a backport of the fix Linus dropped into the 2.5 tree. Can you
put this into 2.4?

Linus' abstract:
> Make in-kernel inode 'nlink' field be "unsigned int" instead
> of something arch-dependent and usually less.
>
> We may want to do value limiting in generic_fillattr() if people
> end up caring.

Of course, 2.4 doesn't have generic_fillattr. This would be cp_old_stat
and cp_new_stat.

Thanks,
Shaggy

===== include/linux/fs.h 1.68 vs edited =====
--- 1.68/include/linux/fs.h Fri Aug 23 08:27:33 2002
+++ edited/include/linux/fs.h Thu Sep 5 15:33:33 2002
@@ -442,7 +442,7 @@
         atomic_t i_count;
         kdev_t i_dev;
         umode_t i_mode;
- nlink_t i_nlink;
+ unsigned int i_nlink;
         uid_t i_uid;
         gid_t i_gid;
         kdev_t i_rdev;
-
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 : Sat Sep 07 2002 - 22:00:26 EST