diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-10 21:54:03 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-10 21:54:03 +0200 |
commit | d65affb8a22bc259a9b55d38d15f6353d527fef4 (patch) | |
tree | c6961cf8fe6d7e3bddd79a95cdbd6bba42c70fe1 /ext2fs | |
parent | 967fc183fd27607fe0f58af36801793725c7c558 (diff) | |
download | hurd-d65affb8a22bc259a9b55d38d15f6353d527fef4.tar.gz hurd-d65affb8a22bc259a9b55d38d15f6353d527fef4.tar.bz2 hurd-d65affb8a22bc259a9b55d38d15f6353d527fef4.zip |
ext2fs: Fix getting filemap for forcing delayed copies
The delayed copy actually needs write access.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/truncate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index 265f7f2c..6d35fd20 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -240,7 +240,7 @@ force_delayed_copies (struct node *node, off_t length) mach_port_t obj; pager_change_attributes (pager, MAY_CACHE, MEMORY_OBJECT_COPY_NONE, 1); - obj = diskfs_get_filemap (node, VM_PROT_READ); + obj = diskfs_get_filemap (node, VM_PROT_READ | VM_PROT_WRITE); if (obj != MACH_PORT_NULL) { /* XXX should cope with errors from diskfs_get_filemap */ |