Re: [PATCH] 2.4.8-pre3 fsync entire path (+reiserfs fsync semantic change patch)

Chris Wedgwood (cw@f00f.org)
Sun, 5 Aug 2001 19:25:46 +1200


On Sat, Aug 04, 2001 at 02:07:59PM -0700, Andrew Morton wrote:

Sorry, Chris - I was being even more than usually stupid. All you
need do is overload the return value from file_operations.fsync().
It currently returns zero on success or negative error. You can
just define a return value of "1" to mean that the fs has taken
care of syncing the directory info and no further action is needed
at the fs layer.

Seems quite reasonable. I'm quite keen on ehat approach except it
seems for some filesystems, walking the path is expensive. How about
a flag in the superblock on whether we do this or not?

That said, it's been pointed out it doesn't actually help in several
cases (link/unlink) for example, so maybe I should forget the whole
thing?

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