]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/libfs.c
fs: symlink write_begin allocation context fix
[net-next-2.6.git] / fs / libfs.c
index e960a8321902cad9398447f3434f31f90a0f2b3c..bdaec17fa388a8ec98bd03f7b393b193aec2627b 100644 (file)
@@ -360,7 +360,7 @@ int simple_write_begin(struct file *file, struct address_space *mapping,
        index = pos >> PAGE_CACHE_SHIFT;
        from = pos & (PAGE_CACHE_SIZE - 1);
 
-       page = __grab_cache_page(mapping, index);
+       page = grab_cache_page_write_begin(mapping, index, flags);
        if (!page)
                return -ENOMEM;