Only send notifications if writing was successful.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4712 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-09-16 13:19:21 +00:00
parent cbfc7b95e0
commit f96b2bc0de
@@ -1280,7 +1280,7 @@ bfs_write(void *_ns, void *_node, void *_cookie, off_t pos, const void *buffer,
if (status == B_OK)
transaction.Done();
if ((inode->Flags() & INODE_NO_CACHE) == 0) {
if (status == B_OK && (inode->Flags() & INODE_NO_CACHE) == 0) {
// uncached files don't cause notifications during access, and
// never want to write back any cached blocks