[PATCH] fix fsync(dir) return value for ram-based filesystems