diff --git a/fs/vfs/fs_truncate.c b/fs/vfs/fs_truncate.c index 827070774c9..d6dc7dfb6a4 100644 --- a/fs/vfs/fs_truncate.c +++ b/fs/vfs/fs_truncate.c @@ -32,6 +32,7 @@ #include +#include "notify/notify.h" #include "inode/inode.h" /**************************************************************************** @@ -180,6 +181,9 @@ int ftruncate(int fd, off_t length) fs_putfilep(filep); if (ret >= 0) { +#ifdef CONFIG_FS_NOTIFY + notify_write(filep); +#endif return 0; }