Commit a14af0a7 authored by Edward Shishkin's avatar Edward Shishkin Committed by james toy

Make sure that reiser4_write_begin() is not called for interruptible

copies.

Signed-off-by: Edward Shishkin<edward.shishkin@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 69a9019a
......@@ -682,6 +682,12 @@ int reiser4_write_begin_careful(struct file *file,
reiser4_context *ctx;
struct inode * inode = file->f_dentry->d_inode;
/**
* reiser4_write_end() can not cope with
* short writes for now
*/
BUG_ON(!(flags & AOP_FLAG_UNINTERRUPTIBLE));
index = pos >> PAGE_CACHE_SHIFT;
start = pos & (PAGE_CACHE_SIZE - 1);
end = start + len;
......
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