address_space

cephfs linux kernel client针对linux page cache的操作

依然范特西╮ 提交于 2019-12-10 03:27:21
针对linux page cache的操作主要体现在struct address_space_operations数据结构中,cephfs处理linux page cache的函数集合如下: const struct address_space_operations ceph_aops = { .readpage = ceph_readpage, .readpages = ceph_readpages, .writepage = ceph_writepage, .writepages = ceph_writepages_start, .write_begin = ceph_write_begin, .write_end = ceph_write_end, .set_page_dirty = ceph_set_page_dirty, .invalidatepage = ceph_invalidatepage, .releasepage = ceph_releasepage, .direct_IO = ceph_direct_io, }; ceph_readpage(struct file *filp, struct page *page) |__调用readpage_nounlock(filep, page) 在加锁的情况下读取一个物理内存页的数据 |_