Commit 5efbeef6 authored by Laurent Riffard's avatar Laurent Riffard Committed by james toy

Reiser4 can't be built as a module when EXPORT_UNUSED_SYMBOL is not set.

It's broken because reiser4_write_extent is calling
simple_prepare_write() and commit
4e02ed4b scheduled it for unexporting.
Signed-off-by: default avatarLaurent Riffard <laurent.riffard@free.fr>
Acked-by: default avatarEdward Shishkin <edward.shishkin@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 09e546fe
......@@ -1059,8 +1059,9 @@ ssize_t reiser4_write_extent(struct file *file, struct inode * inode,
lock_page(page);
if (!PageUptodate(page) && to_page != PAGE_CACHE_SIZE)
simple_prepare_write(file, page, page_off,
page_off + to_page);
zero_user_segments(page, 0, page_off,
page_off + to_page,
PAGE_CACHE_SIZE);
written = filemap_copy_from_user(page, page_off, buf, to_page);
if (unlikely(written != to_page)) {
......
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