Home
last modified time | relevance | path

Searched refs:page (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/fs/jfs/
Djfs_metapage.c48 unlock_page(mp->page); in __lock_metapage()
50 lock_page(mp->page); in __lock_metapage()
79 #define mp_anchor(page) ((struct meta_anchor *)page_private(page)) argument
81 static inline struct metapage *page_to_mp(struct page *page, int offset) in page_to_mp() argument
83 if (!PagePrivate(page)) in page_to_mp()
85 return mp_anchor(page)->mp[offset >> L2PSIZE]; in page_to_mp()
88 static inline int insert_metapage(struct page *page, struct metapage *mp) in insert_metapage() argument
94 if (PagePrivate(page)) in insert_metapage()
95 a = mp_anchor(page); in insert_metapage()
100 set_page_private(page, (unsigned long)a); in insert_metapage()
[all …]
/fs/sysv/
Ddir.c31 static inline void dir_put_page(struct page *page) in dir_put_page() argument
33 kunmap(page); in dir_put_page()
34 put_page(page); in dir_put_page()
37 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) in dir_commit_chunk() argument
39 struct address_space *mapping = page->mapping; in dir_commit_chunk()
43 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk()
49 err = write_one_page(page); in dir_commit_chunk()
51 unlock_page(page); in dir_commit_chunk()
55 static struct page * dir_get_page(struct inode *dir, unsigned long n) in dir_get_page()
58 struct page *page = read_mapping_page(mapping, n, NULL); in dir_get_page() local
[all …]
/fs/iomap/
Dbuffered-io.c23 iomap_page_create(struct inode *inode, struct page *page) in iomap_page_create() argument
25 struct iomap_page *iop = to_iomap_page(page); in iomap_page_create()
39 get_page(page); in iomap_page_create()
40 set_page_private(page, (unsigned long)iop); in iomap_page_create()
41 SetPagePrivate(page); in iomap_page_create()
46 iomap_page_release(struct page *page) in iomap_page_release() argument
48 struct iomap_page *iop = to_iomap_page(page); in iomap_page_release()
54 ClearPagePrivate(page); in iomap_page_release()
55 set_page_private(page, 0); in iomap_page_release()
56 put_page(page); in iomap_page_release()
[all …]
/fs/9p/
Dvfs_addr.c38 static int v9fs_fid_readpage(void *data, struct page *page) in v9fs_fid_readpage() argument
41 struct inode *inode = page->mapping->host; in v9fs_fid_readpage()
42 struct bio_vec bvec = {.bv_page = page, .bv_len = PAGE_SIZE}; in v9fs_fid_readpage()
48 BUG_ON(!PageLocked(page)); in v9fs_fid_readpage()
50 retval = v9fs_readpage_from_fscache(inode, page); in v9fs_fid_readpage()
56 retval = p9_client_read(fid, page_offset(page), &to, &err); in v9fs_fid_readpage()
58 v9fs_uncache_page(inode, page); in v9fs_fid_readpage()
63 zero_user(page, retval, PAGE_SIZE - retval); in v9fs_fid_readpage()
64 flush_dcache_page(page); in v9fs_fid_readpage()
65 SetPageUptodate(page); in v9fs_fid_readpage()
[all …]
Dcache.h30 extern int __v9fs_fscache_release_page(struct page *page, gfp_t gfp);
31 extern void __v9fs_fscache_invalidate_page(struct page *page);
33 struct page *page);
38 extern void __v9fs_readpage_to_fscache(struct inode *inode, struct page *page);
40 struct page *page);
42 static inline int v9fs_fscache_release_page(struct page *page, in v9fs_fscache_release_page() argument
45 return __v9fs_fscache_release_page(page, gfp); in v9fs_fscache_release_page()
48 static inline void v9fs_fscache_invalidate_page(struct page *page) in v9fs_fscache_invalidate_page() argument
50 __v9fs_fscache_invalidate_page(page); in v9fs_fscache_invalidate_page()
54 struct page *page) in v9fs_readpage_from_fscache() argument
[all …]
/fs/ubifs/
Dfile.c99 static int do_readpage(struct page *page) in do_readpage() argument
105 struct inode *inode = page->mapping->host; in do_readpage()
110 inode->i_ino, page->index, i_size, page->flags); in do_readpage()
111 ubifs_assert(c, !PageChecked(page)); in do_readpage()
112 ubifs_assert(c, !PagePrivate(page)); in do_readpage()
114 addr = kmap(page); in do_readpage()
116 block = page->index << UBIFS_BLOCKS_PER_PAGE_SHIFT; in do_readpage()
120 SetPageChecked(page); in do_readpage()
162 SetPageChecked(page); in do_readpage()
167 page->index, inode->i_ino, err); in do_readpage()
[all …]
/fs/nilfs2/
Ddir.c67 static inline void nilfs_put_page(struct page *page) in nilfs_put_page() argument
69 kunmap(page); in nilfs_put_page()
70 put_page(page); in nilfs_put_page()
87 static int nilfs_prepare_chunk(struct page *page, unsigned int from, in nilfs_prepare_chunk() argument
90 loff_t pos = page_offset(page) + from; in nilfs_prepare_chunk()
92 return __block_write_begin(page, pos, to - from, nilfs_get_block); in nilfs_prepare_chunk()
95 static void nilfs_commit_chunk(struct page *page, in nilfs_commit_chunk() argument
100 loff_t pos = page_offset(page) + from; in nilfs_commit_chunk()
105 nr_dirty = nilfs_page_count_clean_buffers(page, from, to); in nilfs_commit_chunk()
106 copied = block_write_end(NULL, mapping, pos, len, len, page, NULL); in nilfs_commit_chunk()
[all …]
Dpage.c29 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, in __nilfs_get_page_block() argument
36 if (!page_has_buffers(page)) in __nilfs_get_page_block()
37 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block()
40 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block()
54 struct page *page; in nilfs_grab_buffer() local
57 page = grab_cache_page(mapping, index); in nilfs_grab_buffer()
58 if (unlikely(!page)) in nilfs_grab_buffer()
61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
63 unlock_page(page); in nilfs_grab_buffer()
64 put_page(page); in nilfs_grab_buffer()
[all …]
/fs/ceph/
Daddr.c62 static inline struct ceph_snap_context *page_snap_context(struct page *page) in page_snap_context() argument
64 if (PagePrivate(page)) in page_snap_context()
65 return (void *)page->private; in page_snap_context()
73 static int ceph_set_page_dirty(struct page *page) in ceph_set_page_dirty() argument
75 struct address_space *mapping = page->mapping; in ceph_set_page_dirty()
82 return !TestSetPageDirty(page); in ceph_set_page_dirty()
84 if (PageDirty(page)) { in ceph_set_page_dirty()
86 mapping->host, page, page->index); in ceph_set_page_dirty()
87 BUG_ON(!PagePrivate(page)); in ceph_set_page_dirty()
114 mapping->host, page, page->index, in ceph_set_page_dirty()
[all …]
/fs/ecryptfs/
Dmmap.c33 struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) in ecryptfs_get_locked_page()
35 struct page *page = read_mapping_page(inode->i_mapping, index, NULL); in ecryptfs_get_locked_page() local
36 if (!IS_ERR(page)) in ecryptfs_get_locked_page()
37 lock_page(page); in ecryptfs_get_locked_page()
38 return page; in ecryptfs_get_locked_page()
51 static int ecryptfs_writepage(struct page *page, struct writeback_control *wbc) in ecryptfs_writepage() argument
55 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage()
58 "page (upper index [0x%.16lx])\n", page->index); in ecryptfs_writepage()
59 ClearPageUptodate(page); in ecryptfs_writepage()
62 SetPageUptodate(page); in ecryptfs_writepage()
[all …]
/fs/minix/
Ddir.c29 static inline void dir_put_page(struct page *page) in dir_put_page() argument
31 kunmap(page); in dir_put_page()
32 put_page(page); in dir_put_page()
49 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) in dir_commit_chunk() argument
51 struct address_space *mapping = page->mapping; in dir_commit_chunk()
54 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk()
61 err = write_one_page(page); in dir_commit_chunk()
63 unlock_page(page); in dir_commit_chunk()
67 static struct page * dir_get_page(struct inode *dir, unsigned long n) in dir_get_page()
70 struct page *page = read_mapping_page(mapping, n, NULL); in dir_get_page() local
[all …]
/fs/
Dbuffer.c84 void buffer_check_dirty_writeback(struct page *page, in buffer_check_dirty_writeback() argument
91 BUG_ON(!PageLocked(page)); in buffer_check_dirty_writeback()
93 if (!page_has_buffers(page)) in buffer_check_dirty_writeback()
96 if (PageWriteback(page)) in buffer_check_dirty_writeback()
99 head = page_buffers(page); in buffer_check_dirty_writeback()
125 __clear_page_buffers(struct page *page) in __clear_page_buffers() argument
127 ClearPagePrivate(page); in __clear_page_buffers()
128 set_page_private(page, 0); in __clear_page_buffers()
129 put_page(page); in __clear_page_buffers()
203 struct page *page; in __find_get_block_slow() local
[all …]
Dmpage.c62 struct page *first_page = bio->bi_io_vec[0].bv_page; in mpage_end_io()
71 struct page *page = bv->bv_page; in mpage_end_io() local
72 page_endio(page, bio_op(bio), in mpage_end_io()
82 struct page *first_page = bio->bi_io_vec[0].bv_page; in mpage_bio_submit()
140 map_buffer_to_page(struct page *page, struct buffer_head *bh, int page_block) in map_buffer_to_page() argument
142 struct inode *inode = page->mapping->host; in map_buffer_to_page()
146 if (!page_has_buffers(page)) { in map_buffer_to_page()
153 SetPageUptodate(page); in map_buffer_to_page()
156 create_empty_buffers(page, i_blocksize(inode), 0); in map_buffer_to_page()
158 head = page_buffers(page); in map_buffer_to_page()
[all …]
/fs/ext2/
Ddir.c69 static inline void ext2_put_page(struct page *page) in ext2_put_page() argument
71 kunmap(page); in ext2_put_page()
72 put_page(page); in ext2_put_page()
90 static int ext2_commit_chunk(struct page *page, loff_t pos, unsigned len) in ext2_commit_chunk() argument
92 struct address_space *mapping = page->mapping; in ext2_commit_chunk()
97 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ext2_commit_chunk()
105 err = write_one_page(page); in ext2_commit_chunk()
109 unlock_page(page); in ext2_commit_chunk()
115 static bool ext2_check_page(struct page *page, int quiet) in ext2_check_page() argument
117 struct inode *dir = page->mapping->host; in ext2_check_page()
[all …]
/fs/gfs2/
Daops.c40 void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, in gfs2_page_add_databufs() argument
43 struct buffer_head *head = page_buffers(page); in gfs2_page_add_databufs()
89 static int gfs2_writepage(struct page *page, struct writeback_control *wbc) in gfs2_writepage() argument
91 struct inode *inode = page->mapping->host; in gfs2_writepage()
104 if (page->index > end_index || (page->index == end_index && !offset)) { in gfs2_writepage()
105 page->mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE); in gfs2_writepage()
109 return nobh_writepage(page, gfs2_get_block_noalloc, wbc); in gfs2_writepage()
112 redirty_page_for_writepage(wbc, page); in gfs2_writepage()
114 unlock_page(page); in gfs2_writepage()
121 static int gfs2_write_full_page(struct page *page, get_block_t *get_block, in gfs2_write_full_page() argument
[all …]
/fs/ufs/
Ddir.c45 static int ufs_commit_chunk(struct page *page, loff_t pos, unsigned len) in ufs_commit_chunk() argument
47 struct address_space *mapping = page->mapping; in ufs_commit_chunk()
52 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ufs_commit_chunk()
58 err = write_one_page(page); in ufs_commit_chunk()
60 unlock_page(page); in ufs_commit_chunk()
64 static inline void ufs_put_page(struct page *page) in ufs_put_page() argument
66 kunmap(page); in ufs_put_page()
67 put_page(page); in ufs_put_page()
74 struct page *page; in ufs_inode_by_name() local
76 de = ufs_find_entry(dir, qstr, &page); in ufs_inode_by_name()
[all …]
/fs/afs/
Dwrite.c19 int afs_set_page_dirty(struct page *page) in afs_set_page_dirty() argument
22 return __set_page_dirty_nobuffers(page); in afs_set_page_dirty()
29 loff_t pos, unsigned int len, struct page *page) in afs_fill_page() argument
41 data = kmap(page); in afs_fill_page()
43 kunmap(page); in afs_fill_page()
56 req->pages[0] = page; in afs_fill_page()
57 get_page(page); in afs_fill_page()
79 struct page **pagep, void **fsdata) in afs_write_begin()
82 struct page *page; in afs_write_begin() local
96 BUILD_BUG_ON(PAGE_SIZE > 32768 && sizeof(page->private) < 8); in afs_write_begin()
[all …]
Dfile.c20 static int afs_readpage(struct file *file, struct page *page);
21 static void afs_invalidatepage(struct page *page, unsigned int offset,
23 static int afs_releasepage(struct page *page, gfp_t gfp_flags);
209 static void afs_file_readpage_read_complete(struct page *page, in afs_file_readpage_read_complete() argument
213 _enter("%p,%p,%d", page, data, error); in afs_file_readpage_read_complete()
218 SetPageUptodate(page); in afs_file_readpage_read_complete()
219 unlock_page(page); in afs_file_readpage_read_complete()
272 int afs_page_filler(void *data, struct page *page) in afs_page_filler() argument
274 struct inode *inode = page->mapping->host; in afs_page_filler()
280 _enter("{%x},{%lu},{%lu}", key_serial(key), inode->i_ino, page->index); in afs_page_filler()
[all …]
/fs/erofs/
Dzdata.c31 #define tag_compressed_page_justfound(page) \ argument
32 tagptr_fold(compressed_page_t, page, 1)
136 struct page **compressedpages;
161 static struct page *z_pagemap_global[Z_EROFS_VMAP_GLOBAL_PAGES];
171 struct page **pages = clt->compressedpages; in preload_compressed_pages()
179 struct page *page; in preload_compressed_pages() local
186 page = find_get_page(mc, index); in preload_compressed_pages()
188 if (page) { in preload_compressed_pages()
189 t = tag_compressed_page_justfound(page); in preload_compressed_pages()
202 if (page) in preload_compressed_pages()
[all …]
/fs/squashfs/
Dfile_direct.c21 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize,
22 int pages, struct page **page, int bytes);
25 int squashfs_readpage_block(struct page *target_page, u64 block, int bsize, in squashfs_readpage_block()
37 struct page **page; in squashfs_readpage_block() local
46 page = kmalloc_array(pages, sizeof(void *), GFP_KERNEL); in squashfs_readpage_block()
47 if (page == NULL) in squashfs_readpage_block()
54 actor = squashfs_page_actor_init_special(page, pages, 0); in squashfs_readpage_block()
60 page[i] = (n == target_page->index) ? target_page : in squashfs_readpage_block()
63 if (page[i] == NULL) { in squashfs_readpage_block()
68 if (PageUptodate(page[i])) { in squashfs_readpage_block()
[all …]
/fs/orangefs/
Dinode.c18 static int orangefs_writepage_locked(struct page *page, in orangefs_writepage_locked() argument
21 struct inode *inode = page->mapping->host; in orangefs_writepage_locked()
29 set_page_writeback(page); in orangefs_writepage_locked()
32 if (PagePrivate(page)) { in orangefs_writepage_locked()
33 wr = (struct orangefs_write_range *)page_private(page); in orangefs_writepage_locked()
42 off = page_offset(page); in orangefs_writepage_locked()
51 bv.bv_page = page; in orangefs_writepage_locked()
60 SetPageError(page); in orangefs_writepage_locked()
61 mapping_set_error(page->mapping, ret); in orangefs_writepage_locked()
67 set_page_private(page, 0); in orangefs_writepage_locked()
[all …]
/fs/f2fs/
Ddata.c36 static bool __is_cp_guaranteed(struct page *page) in __is_cp_guaranteed() argument
38 struct address_space *mapping = page->mapping; in __is_cp_guaranteed()
53 is_cold_data(page)) in __is_cp_guaranteed()
58 static enum count_type __read_io_type(struct page *page) in __read_io_type() argument
60 struct address_space *mapping = page_file_mapping(page); in __read_io_type()
91 struct page *page; in __read_end_io() local
96 page = bv->bv_page; in __read_end_io()
99 if (bio->bi_status || PageError(page)) { in __read_end_io()
100 ClearPageUptodate(page); in __read_end_io()
102 ClearPageError(page); in __read_end_io()
[all …]
Dnode.h236 static inline nid_t ino_of_node(struct page *node_page) in ino_of_node()
242 static inline nid_t nid_of_node(struct page *node_page) in nid_of_node()
248 static inline unsigned int ofs_of_node(struct page *node_page) in ofs_of_node()
255 static inline __u64 cpver_of_node(struct page *node_page) in cpver_of_node()
261 static inline block_t next_blkaddr_of_node(struct page *node_page) in next_blkaddr_of_node()
267 static inline void fill_node_footer(struct page *page, nid_t nid, in fill_node_footer() argument
270 struct f2fs_node *rn = F2FS_NODE(page); in fill_node_footer()
286 static inline void copy_node_footer(struct page *dst, struct page *src) in copy_node_footer()
293 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr() argument
295 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page)); in fill_node_footer_blkaddr()
[all …]
Dnode.c100 static void clear_node_page_dirty(struct page *page) in clear_node_page_dirty() argument
102 if (PageDirty(page)) { in clear_node_page_dirty()
103 f2fs_clear_page_cache_dirty_tag(page); in clear_node_page_dirty()
104 clear_page_dirty_for_io(page); in clear_node_page_dirty()
105 dec_page_count(F2FS_P_SB(page), F2FS_DIRTY_NODES); in clear_node_page_dirty()
107 ClearPageUptodate(page); in clear_node_page_dirty()
110 static struct page *get_current_nat_page(struct f2fs_sb_info *sbi, nid_t nid) in get_current_nat_page()
115 static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid) in get_next_nat_page()
117 struct page *src_page; in get_next_nat_page()
118 struct page *dst_page; in get_next_nat_page()
[all …]
/fs/ntfs/
Daops.c49 struct page *page; in ntfs_end_buffer_async_read() local
54 page = bh->b_page; in ntfs_end_buffer_async_read()
55 vi = page->mapping->host; in ntfs_end_buffer_async_read()
64 file_ofs = ((s64)page->index << PAGE_SHIFT) + in ntfs_end_buffer_async_read()
82 kaddr = kmap_atomic(page); in ntfs_end_buffer_async_read()
85 flush_dcache_page(page); in ntfs_end_buffer_async_read()
90 SetPageError(page); in ntfs_end_buffer_async_read()
94 first = page_buffers(page); in ntfs_end_buffer_async_read()
122 if (likely(page_uptodate && !PageError(page))) in ntfs_end_buffer_async_read()
123 SetPageUptodate(page); in ntfs_end_buffer_async_read()
[all …]

12345678910>>...16