git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: symlink resolve.
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
pcache.c
diff --git
a/lunaix-os/kernel/fs/pcache.c
b/lunaix-os/kernel/fs/pcache.c
index 8ef8fc8aa4359a95a15d8653d0d361f6a8bc0ff3..0094ec4bc0c7fde1e67f2a799e180ff302f67c1e 100644
(file)
--- a/
lunaix-os/kernel/fs/pcache.c
+++ b/
lunaix-os/kernel/fs/pcache.c
@@
-137,7
+137,7
@@
pcache_read(struct v_inode* inode, void* data, uint32_t len, uint32_t fpos)
}
// Filling up the page
}
// Filling up the page
- errno = inode->default_fops
.
read(inode, pg->pg, PG_SIZE, pg->fpos);
+ errno = inode->default_fops
->
read(inode, pg->pg, PG_SIZE, pg->fpos);
if (errno >= 0 && errno < PG_SIZE) {
// EOF
len = buf_off + errno;
if (errno >= 0 && errno < PG_SIZE) {
// EOF
len = buf_off + errno;
@@
-175,7
+175,8
@@
pcache_commit(struct v_inode* inode, struct pcache_pg* page)
return;
}
return;
}
- int errno = inode->default_fops.write(inode, page->pg, PG_SIZE, page->fpos);
+ int errno =
+ inode->default_fops->write(inode, page->pg, PG_SIZE, page->fpos);
if (!errno) {
page->flags &= ~PCACHE_DIRTY;
if (!errno) {
page->flags &= ~PCACHE_DIRTY;