summaryrefslogtreecommitdiff
path: root/rtems/rtems_yaffs.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtems/rtems_yaffs.c')
-rw-r--r--rtems/rtems_yaffs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtems/rtems_yaffs.c b/rtems/rtems_yaffs.c
index 0cd42b9..3e9c44d 100644
--- a/rtems/rtems_yaffs.c
+++ b/rtems/rtems_yaffs.c
@@ -493,7 +493,7 @@ static int ryfs_fsync_or_fdatasync(rtems_libio_t *iop)
ylock(dev);
yc = yaffs_flush_file(obj, 0, 1);
- if (rtems_filesystem_location_is_root(&iop->pathinfo)) {
+ if (rtems_filesystem_location_is_instance_root(&iop->pathinfo)) {
yaffs_flush_whole_cache(dev);
}
yunlock(dev);