Loading fs/exofs/inode.c +9 −3 Original line number Diff line number Diff line Loading @@ -377,9 +377,8 @@ static int read_exec(struct page_collect *pcol) * and will start a new collection. Eventually caller must submit the last * segment if present. */ static int readpage_strip(void *data, struct page *page) static int __readpage_strip(struct page_collect *pcol, struct page *page) { struct page_collect *pcol = data; struct inode *inode = pcol->inode; struct exofs_i_info *oi = exofs_i(inode); loff_t i_size = i_size_read(inode); Loading Loading @@ -470,6 +469,13 @@ static int readpage_strip(void *data, struct page *page) return ret; } static int readpage_strip(struct file *data, struct page *page) { struct page_collect *pcol = (struct page_collect *)data; return __readpage_strip(pcol, page); } static int exofs_readpages(struct file *file, struct address_space *mapping, struct list_head *pages, unsigned nr_pages) { Loading Loading @@ -499,7 +505,7 @@ static int _readpage(struct page *page, bool read_4_write) _pcol_init(&pcol, 1, page->mapping->host); pcol.read_4_write = read_4_write; ret = readpage_strip(&pcol, page); ret = __readpage_strip(&pcol, page); if (ret) { EXOFS_ERR("_readpage => %d\n", ret); return ret; Loading Loading
fs/exofs/inode.c +9 −3 Original line number Diff line number Diff line Loading @@ -377,9 +377,8 @@ static int read_exec(struct page_collect *pcol) * and will start a new collection. Eventually caller must submit the last * segment if present. */ static int readpage_strip(void *data, struct page *page) static int __readpage_strip(struct page_collect *pcol, struct page *page) { struct page_collect *pcol = data; struct inode *inode = pcol->inode; struct exofs_i_info *oi = exofs_i(inode); loff_t i_size = i_size_read(inode); Loading Loading @@ -470,6 +469,13 @@ static int readpage_strip(void *data, struct page *page) return ret; } static int readpage_strip(struct file *data, struct page *page) { struct page_collect *pcol = (struct page_collect *)data; return __readpage_strip(pcol, page); } static int exofs_readpages(struct file *file, struct address_space *mapping, struct list_head *pages, unsigned nr_pages) { Loading Loading @@ -499,7 +505,7 @@ static int _readpage(struct page *page, bool read_4_write) _pcol_init(&pcol, 1, page->mapping->host); pcol.read_4_write = read_4_write; ret = readpage_strip(&pcol, page); ret = __readpage_strip(&pcol, page); if (ret) { EXOFS_ERR("_readpage => %d\n", ret); return ret; Loading