Added syscall to update filestats (size) from pager.

After flushing written/truncated pages, stats are updated
so that vfs is synced with new file info such as its size.
This commit is contained in:
Bahadir Balban
2008-05-21 10:23:11 +00:00
parent 5efece98cd
commit bd8b182f1b
6 changed files with 70 additions and 7 deletions

View File

@@ -92,6 +92,11 @@ void handle_fs_requests(void)
pager_sys_write(sender, (unsigned long)mr[0], (unsigned long)mr[1],
(unsigned long)mr[2], (void *)mr[3]);
break;
case L4_IPC_TAG_PAGER_UPDATE_STATS:
pager_update_stats(sender, (unsigned long)mr[0],
(unsigned long)mr[1]);
break;
default:
printf("%s: Unrecognised ipc tag (%d) "
"received from tid: %d. Ignoring.\n", __TASKNAME__,