-void ll_end_writeback(struct inode *, struct page *);
-
-void ll_remove_dirty(struct inode *inode, unsigned long start,
- unsigned long end);
-int ll_rd_dirty_pages(char *page, char **start, off_t off, int count,
- int *eof, void *data);
-int ll_rd_max_dirty_pages(char *page, char **start, off_t off, int count,
- int *eof, void *data);
-int ll_wr_max_dirty_pages(struct file *file, const char *buffer,
- unsigned long count, void *data);
-int ll_clear_dirty_pages(struct lustre_handle *conn, struct lov_stripe_md *lsm,
- unsigned long start, unsigned long end);
-int ll_mark_dirty_page(struct lustre_handle *conn, struct lov_stripe_md *lsm,
- unsigned long index);
-
-/* llite/file.c */
-extern int ll_inode_revalidate_it(struct dentry *dentry, struct lookup_intent *);
-
-/* llite/super.c */
-int ll_inode_setattr(struct inode *inode, struct iattr *attr, int do_trunc);
-int ll_setattr(struct dentry *de, struct iattr *attr);
-
-/* iod.c */
-#define IO_STAT_ADD(FIS, STAT, VAL) do { \
- struct file_io_stats *_fis_ = (FIS); \
- spin_lock(&_fis_->fis_lock); \
- _fis_->fis_##STAT += VAL; \
- spin_unlock(&_fis_->fis_lock); \
-} while (0)
-
-#define INODE_IO_STAT_ADD(INODE, STAT, VAL) \
- IO_STAT_ADD(&ll_i2sbi(INODE)->ll_iostats, STAT, VAL)
-
-#define PAGE_IO_STAT_ADD(PAGE, STAT, VAL) \
- INODE_IO_STAT_ADD((PAGE)->mapping, STAT, VAL)
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
-/* XXX lliod needs more work in 2.5 before being proven and brought back
- * to 2.4, it'll at least require a patch to introduce page->private */
-int lliod_start(struct ll_sb_info *sbi, struct inode *inode);
-void lliod_stop(struct ll_sb_info *sbi);
-#else
-#define lliod_start(sbi, inode) ({int _ret = 0; (void)sbi, (void)inode; _ret;})
-#define lliod_stop(sbi) do { (void)sbi; } while (0)
-#endif
-void lliod_wakeup(struct inode *inode);
-void lliod_give_plist(struct inode *inode, struct plist *plist, int rw);
-void lliod_give_page(struct inode *inode, struct page *page, int rw);
-void plist_init(struct plist *plist); /* for lli initialization.. */
-
-void ll_lldo_init(struct ll_dirty_offsets *lldo);
-void ll_record_dirty(struct inode *inode, unsigned long offset);
-void ll_remove_dirty(struct inode *inode, unsigned long start,
- unsigned long end);
-int ll_find_dirty(struct ll_dirty_offsets *lldo, unsigned long *start,
- unsigned long *end);
-int ll_farthest_dirty(struct ll_dirty_offsets *lldo, unsigned long *farthest);
+int ll_prepare_write(struct file *, struct page *, unsigned from, unsigned to);
+int ll_commit_write(struct file *, struct page *, unsigned from, unsigned to);
+void ll_inode_fill_obdo(struct inode *inode, int cmd, struct obdo *oa);
+void ll_ap_completion(void *data, int cmd, struct obdo *oa, int rc);
+void ll_removepage(struct page *page);
+int ll_sync_page(struct page *page);
+int ll_readpage(struct file *file, struct page *page);
+struct ll_async_page *llap_from_cookie(void *cookie);
+struct ll_async_page *llap_from_page(struct page *page);
+void ll_readahead_init(struct inode *inode, struct ll_readahead_state *ras);