From 4125c3880828473dda6ecae5de731d7da40d1bbb Mon Sep 17 00:00:00 2001 From: nvt Date: Sun, 13 Feb 2011 21:34:29 +0100 Subject: [PATCH] missing word --- core/cfs/cfs-coffee.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 core/cfs/cfs-coffee.c diff --git a/core/cfs/cfs-coffee.c b/core/cfs/cfs-coffee.c old mode 100644 new mode 100755 index 8872997ce..0180b27e8 --- a/core/cfs/cfs-coffee.c +++ b/core/cfs/cfs-coffee.c @@ -333,7 +333,7 @@ get_sector_status(uint16_t sector, struct sector_status *stats) /* * To avoid unnecessary page isolation, we notify the callee that - * "skip_pages" pages should be isolated only the current file extent + * "skip_pages" pages should be isolated only if the current file extent * ends in the next sector. If the file extent ends in a more distant * sector, however, the garbage collection can free the next sector * immediately without requiring page isolation. @@ -1159,6 +1159,7 @@ cfs_write(int fd, const void *buf, unsigned size) cfs_offset_t bytes_left; const char dummy[1] = { 0xff }; #endif + if(!(FD_VALID(fd) && FD_WRITABLE(fd))) { return -1; }