Bug in fdatasync?

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Tue, 8 Sep 1998 03:16:39 +0100


I noticed sys_fsync and sys_fdatasync have exactly the same
implementation, except that sys_fsync does `down(&inode->i_sem)' + up,
and sys_fdatasync doesn't.

It looks like one of them is wrong; probably fdatasync has a bug that's
been fixed in fsync.

Seeing as they're exactly the same code, perhaps it would make sense for
sys_fdatasync to simply call sys_fsync?

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html