Make sure that reiser4_write_begin() is not called for interruptible copies. Signed-off-by: Edward Shishkin --- linux-2.6.28-rc2-mm1/fs/reiser4/plugin/file/file_conversion.c | 6 ++++++ 1 file changed, 6 insertions(+) --- linux-2.6.28-rc2-mm1/fs/reiser4/plugin/file/file_conversion.c.orig +++ linux-2.6.28-rc2-mm1/fs/reiser4/plugin/file/file_conversion.c @@ -682,6 +682,12 @@ int reiser4_write_begin_careful(struct f 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;