Re: [PATCH] filemap_fdatasync & related changes

Daniel Phillips (phillips@innominate.de)
Thu, 04 Jan 2001 23:52:24 +0100


Linus Torvalds wrote:
> I'd rather just change the rule that "writepage()" will clear the dirty
> bit itself and always unlock (and "1" just to inform the upper layers that
> the page cannot be thrown away).

Change to that rule or from? I *think* you just said:

- If ->writepage successfully starts writeout on the page it clears
the dirty bit and returns 0

- If not successful, ->writepage unlocks the page and return 1

Who is going to be responsible for checking that the page dirty bit was
really set, and what will happen if it wasn't?

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