Commit cce77081 authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

SYNC_FILE_RANGE_WRITE may and will block. Document that.

[akpm@linux-foundation.org: fix comment text]
Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bcd78e49
...@@ -139,7 +139,8 @@ asmlinkage long sys_fdatasync(unsigned int fd) ...@@ -139,7 +139,8 @@ asmlinkage long sys_fdatasync(unsigned int fd)
* before performing the write. * before performing the write.
* *
* SYNC_FILE_RANGE_WRITE: initiate writeout of all those dirty pages in the * SYNC_FILE_RANGE_WRITE: initiate writeout of all those dirty pages in the
* range which are not presently under writeback. * range which are not presently under writeback. Note that this may block for
* significant periods due to exhaustion of disk request structures.
* *
* SYNC_FILE_RANGE_WAIT_AFTER: wait upon writeout of all pages in the range * SYNC_FILE_RANGE_WAIT_AFTER: wait upon writeout of all pages in the range
* after performing the write. * after performing the write.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment