]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/hostfs/hostfs_kern.c
fs: symlink write_begin allocation context fix
[karo-tx-linux.git] / fs / hostfs / hostfs_kern.c
index d6ecabf4d231f2a9aa9f1cf5b5e1c061ea28cf6c..5e17cae9fe2c91f856602c56eeff1fe04c31e08f 100644 (file)
@@ -500,7 +500,7 @@ int hostfs_write_begin(struct file *file, struct address_space *mapping,
 {
        pgoff_t index = pos >> PAGE_CACHE_SHIFT;
 
-       *pagep = __grab_cache_page(mapping, index);
+       *pagep = grab_cache_page_write_begin(mapping, index, flags);
        if (!*pagep)
                return -ENOMEM;
        return 0;