Fix a bug in put_inode that causes corruption to the file system and another

bug that causes problems when files grow bigger than a certain threshold. Also
fix a few type and code inconsistencies.
This commit is contained in:
Thomas Veerman
2010-06-09 09:56:43 +00:00
parent 1207fcc6f0
commit a0eaaa5c9f
4 changed files with 9 additions and 6 deletions

View File

@@ -150,7 +150,7 @@
/* Some limits. */
#define MAX_INODE_NR ((ino_t) 037777777777) /* largest inode number */
#define MAX_FILE_POS ((off_t) 0x7FFFFFFF) /* largest legal file offset */
#define UMAX_FILE_POS ((unsigned) 0x7FFFFFF) /* largest legal file offset */
#define UMAX_FILE_POS ((unsigned) 0x7FFFFFFF) /* largest legal file offset */
#define MAX_SYM_LOOPS 8 /* how many symbolic links are recursed */