[PATCH] [CIFS] fix potential data corruption when there are errors writing out dirty pages

2007-11-15 Thread Jeff Layton
The idea here is separate "conscious" from "unconscious" flushes. Conscious flushes are those due to a fsync() or close(). Unconscious ones are flushes that occur as a side effect of some other operation or due to memory pressure. Currently, when an error occurs during an unconscious flush

[PATCH] [CIFS] fix potential data corruption when there are errors writing out dirty pages

2007-11-15 Thread Jeff Layton
The idea here is separate conscious from unconscious flushes. Conscious flushes are those due to a fsync() or close(). Unconscious ones are flushes that occur as a side effect of some other operation or due to memory pressure. Currently, when an error occurs during an unconscious flush (ENOSPC or