Page fault handling fix.

Factored out mapping of the physical page as the final generic code
after all fault-specific handling is done.

Fixed the error that zero page didn't have an owner (devzero).

Fixed the error that struct dirent did not have the record length
field as u16 as expected by userspace.
This commit is contained in:
Bahadir Balban
2008-04-14 00:09:57 +01:00
parent 7f815dd2dd
commit d6d97876bb
6 changed files with 72 additions and 83 deletions

View File

@@ -107,7 +107,7 @@ struct dirbuf {
struct dirent {
u32 inum; /* Inode number */
u32 offset; /* Dentry offset in its buffer */
u32 rlength; /* Record length */
u16 rlength; /* Record length */
u8 name[DIRENT_NAME_MAX]; /* Name string */
};

View File

@@ -78,7 +78,7 @@ struct memfs_superblock {
struct memfs_dentry {
u32 inum; /* Inode number */
u32 offset; /* Dentry offset in its buffer */
u32 rlength; /* Record length */
u16 rlength; /* Record length */
u8 name[MEMFS_DNAME_MAX]; /* Name string */
};