Home
last modified time | relevance | path

Searched refs:pg (Results 1 – 9 of 9) sorted by relevance

/fs/jffs2/
Dfile.c26 struct page *pg, void *fsdata);
30 static int jffs2_readpage (struct file *filp, struct page *pg);
83 static int jffs2_do_readpage_nolock (struct inode *inode, struct page *pg) in jffs2_do_readpage_nolock() argument
91 __func__, inode->i_ino, pg->index << PAGE_CACHE_SHIFT); in jffs2_do_readpage_nolock()
93 BUG_ON(!PageLocked(pg)); in jffs2_do_readpage_nolock()
95 pg_buf = kmap(pg); in jffs2_do_readpage_nolock()
98 ret = jffs2_read_inode_range(c, f, pg_buf, pg->index << PAGE_CACHE_SHIFT, PAGE_CACHE_SIZE); in jffs2_do_readpage_nolock()
101 ClearPageUptodate(pg); in jffs2_do_readpage_nolock()
102 SetPageError(pg); in jffs2_do_readpage_nolock()
104 SetPageUptodate(pg); in jffs2_do_readpage_nolock()
[all …]
Dfs.c681 struct page *pg; in jffs2_gc_fetch_page() local
683 pg = read_cache_page_async(inode->i_mapping, offset >> PAGE_CACHE_SHIFT, in jffs2_gc_fetch_page()
685 if (IS_ERR(pg)) in jffs2_gc_fetch_page()
686 return (void *)pg; in jffs2_gc_fetch_page()
688 *priv = (unsigned long)pg; in jffs2_gc_fetch_page()
689 return kmap(pg); in jffs2_gc_fetch_page()
696 struct page *pg = (void *)*priv; in jffs2_gc_release_page() local
698 kunmap(pg); in jffs2_gc_release_page()
699 page_cache_release(pg); in jffs2_gc_release_page()
Dos-linux.h160 int jffs2_do_readpage_unlock (struct inode *inode, struct page *pg);
189 unsigned char *pg,
Dgc.c1153 unsigned long pg; in jffs2_garbage_collect_dnode() local
1306 pg_ptr = jffs2_gc_fetch_page(c, f, start, &pg); in jffs2_garbage_collect_dnode()
1376 jffs2_gc_release_page(c, pg_ptr, &pg); in jffs2_garbage_collect_dnode()
/fs/yaffs2/
Dyaffs_vfs.c256 static int yaffs_readpage_nolock(struct file *f, struct page *pg) in yaffs_readpage_nolock() argument
263 loff_t pos = ((loff_t) pg->index) << PAGE_CACHE_SHIFT; in yaffs_readpage_nolock()
276 BUG_ON(!PageLocked(pg)); in yaffs_readpage_nolock()
278 if (!PageLocked(pg)) in yaffs_readpage_nolock()
279 PAGE_BUG(pg); in yaffs_readpage_nolock()
282 pg_buf = kmap(pg); in yaffs_readpage_nolock()
295 ClearPageUptodate(pg); in yaffs_readpage_nolock()
296 SetPageError(pg); in yaffs_readpage_nolock()
298 SetPageUptodate(pg); in yaffs_readpage_nolock()
299 ClearPageError(pg); in yaffs_readpage_nolock()
[all …]
/fs/exofs/
Dore.c579 unsigned pg = *cur_pg; in _ore_add_stripe_unit() local
609 added_len = bio_add_pc_page(q, per_dev->bio, pages[pg], in _ore_add_stripe_unit()
617 _add_stripe_page(ios->sp2d, &ios->si, pages[pg]); in _ore_add_stripe_unit()
620 ++pg; in _ore_add_stripe_unit()
625 *cur_pg = pg; in _ore_add_stripe_unit()
/fs/fuse/
Ddev.c545 struct page *pg; member
578 kunmap(cs->pg); in fuse_copy_finish()
580 flush_dcache_page(cs->pg); in fuse_copy_finish()
581 set_page_dirty_lock(cs->pg); in fuse_copy_finish()
583 put_page(cs->pg); in fuse_copy_finish()
643 err = get_user_pages_fast(cs->addr, 1, cs->write, &cs->pg); in fuse_copy_fill()
648 cs->mapaddr = kmap(cs->pg); in fuse_copy_fill()
/fs/ecryptfs/
Dcrypto.c295 struct page *pg; in virt_to_scatterlist() local
302 pg = virt_to_page(addr); in virt_to_scatterlist()
305 sg_set_page(&sg[i], pg, 0, offset); in virt_to_scatterlist()
/fs/btrfs/
Dfile.c312 int pg = 0; in btrfs_copy_from_user() local
318 struct page *page = prepared_pages[pg]; in btrfs_copy_from_user()
355 pg++; in btrfs_copy_from_user()