Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2a6956)
raw | patch | inline | side by side (parent: f2a6956)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Fri, 11 Oct 2024 14:16:32 +0000 (22:16 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Fri, 11 Oct 2024 14:16:32 +0000 (22:16 +0800) |
| fs/file.c | patch | blob | history |
diff --git a/fs/file.c b/fs/file.c
--- a/fs/file.c
+++ b/fs/file.c
page_t *p = page_hash_table[hash];
while (p != NULL) {
- if (p->mapping != mapping) {
- continue;
- }
- if (p->index == index) {
- page = p;
- break;
+ if (p->mapping == mapping) {
+ if (p->index == index) {
+ page = p;
+ break;
+ }
}
+
+ p = p->hash_next;
}
EXIT_CRITICAL_ZONE(EFLAGS);