Home
last modified time | relevance | path

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

12345678910>>...15

/fs/jfs/
Djfs_metapage.c61 unlock_page(mp->page); in __lock_metapage()
63 lock_page(mp->page); in __lock_metapage()
92 #define mp_anchor(page) ((struct meta_anchor *)page_private(page)) argument
94 static inline struct metapage *page_to_mp(struct page *page, int offset) in page_to_mp() argument
96 if (!PagePrivate(page)) in page_to_mp()
98 return mp_anchor(page)->mp[offset >> L2PSIZE]; in page_to_mp()
101 static inline int insert_metapage(struct page *page, struct metapage *mp) in insert_metapage() argument
107 if (PagePrivate(page)) in insert_metapage()
108 a = mp_anchor(page); in insert_metapage()
113 set_page_private(page, (unsigned long)a); in insert_metapage()
[all …]
/fs/9p/
Dvfs_addr.c52 static int v9fs_fid_readpage(struct p9_fid *fid, struct page *page) in v9fs_fid_readpage() argument
59 inode = page->mapping->host; in v9fs_fid_readpage()
62 BUG_ON(!PageLocked(page)); in v9fs_fid_readpage()
64 retval = v9fs_readpage_from_fscache(inode, page); in v9fs_fid_readpage()
68 buffer = kmap(page); in v9fs_fid_readpage()
69 offset = page_offset(page); in v9fs_fid_readpage()
73 v9fs_uncache_page(inode, page); in v9fs_fid_readpage()
78 flush_dcache_page(page); in v9fs_fid_readpage()
79 SetPageUptodate(page); in v9fs_fid_readpage()
81 v9fs_readpage_to_fscache(inode, page); in v9fs_fid_readpage()
[all …]
Dcache.h44 extern int __v9fs_fscache_release_page(struct page *page, gfp_t gfp);
45 extern void __v9fs_fscache_invalidate_page(struct page *page);
47 struct page *page);
52 extern void __v9fs_readpage_to_fscache(struct inode *inode, struct page *page);
54 struct page *page);
56 static inline int v9fs_fscache_release_page(struct page *page, in v9fs_fscache_release_page() argument
59 return __v9fs_fscache_release_page(page, gfp); in v9fs_fscache_release_page()
62 static inline void v9fs_fscache_invalidate_page(struct page *page) in v9fs_fscache_invalidate_page() argument
64 __v9fs_fscache_invalidate_page(page); in v9fs_fscache_invalidate_page()
68 struct page *page) in v9fs_readpage_from_fscache() argument
[all …]
/fs/ceph/
Daddr.c57 static inline struct ceph_snap_context *page_snap_context(struct page *page) in page_snap_context() argument
59 if (PagePrivate(page)) in page_snap_context()
60 return (void *)page->private; in page_snap_context()
68 static int ceph_set_page_dirty(struct page *page) in ceph_set_page_dirty() argument
70 struct address_space *mapping = page->mapping; in ceph_set_page_dirty()
77 return !TestSetPageDirty(page); in ceph_set_page_dirty()
79 if (TestSetPageDirty(page)) { in ceph_set_page_dirty()
81 mapping->host, page, page->index); in ceph_set_page_dirty()
104 mapping->host, page, page->index, in ceph_set_page_dirty()
112 if (page->mapping) { /* Race with truncate? */ in ceph_set_page_dirty()
[all …]
/fs/sysv/
Ddir.c30 static inline void dir_put_page(struct page *page) in dir_put_page() argument
32 kunmap(page); in dir_put_page()
33 page_cache_release(page); in dir_put_page()
41 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) in dir_commit_chunk() argument
43 struct address_space *mapping = page->mapping; in dir_commit_chunk()
47 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk()
53 err = write_one_page(page, 1); in dir_commit_chunk()
55 unlock_page(page); in dir_commit_chunk()
59 static struct page * dir_get_page(struct inode *dir, unsigned long n) in dir_get_page()
62 struct page *page = read_mapping_page(mapping, n, NULL); in dir_get_page() local
[all …]
/fs/afs/
Dfile.c21 static int afs_readpage(struct file *file, struct page *page);
22 static void afs_invalidatepage(struct page *page, unsigned int offset,
24 static int afs_releasepage(struct page *page, gfp_t gfp_flags);
25 static int afs_launder_page(struct page *page);
110 static void afs_file_readpage_read_complete(struct page *page, in afs_file_readpage_read_complete() argument
114 _enter("%p,%p,%d", page, data, error); in afs_file_readpage_read_complete()
119 SetPageUptodate(page); in afs_file_readpage_read_complete()
120 unlock_page(page); in afs_file_readpage_read_complete()
127 int afs_page_filler(void *data, struct page *page) in afs_page_filler() argument
129 struct inode *inode = page->mapping->host; in afs_page_filler()
[all …]
Dwrite.c21 struct page *page);
26 int afs_set_page_dirty(struct page *page) in afs_set_page_dirty() argument
29 return __set_page_dirty_nobuffers(page); in afs_set_page_dirty()
88 loff_t pos, struct page *page) in afs_fill_page() argument
102 ret = afs_vnode_fetch_data(vnode, key, pos, len, page); in afs_fill_page()
121 struct page **pagep, void **fsdata) in afs_write_begin()
125 struct page *page; in afs_write_begin() local
147 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin()
148 if (!page) { in afs_write_begin()
152 *pagep = page; in afs_write_begin()
[all …]
/fs/logfs/
Dreadwrite.c205 static void prelock_page(struct super_block *sb, struct page *page, int lock) in prelock_page() argument
209 BUG_ON(!PageLocked(page)); in prelock_page()
211 BUG_ON(PagePreLocked(page)); in prelock_page()
212 SetPagePreLocked(page); in prelock_page()
215 if (PagePreLocked(page)) in prelock_page()
218 SetPagePreLocked(page); in prelock_page()
222 static void preunlock_page(struct super_block *sb, struct page *page, int lock) in preunlock_page() argument
226 BUG_ON(!PageLocked(page)); in preunlock_page()
228 ClearPagePreLocked(page); in preunlock_page()
231 BUG_ON(!PagePreLocked(page)); in preunlock_page()
[all …]
Dfile.c14 struct page **pagep, void **fsdata) in logfs_write_begin()
17 struct page *page; in logfs_write_begin() local
20 page = grab_cache_page_write_begin(mapping, index, flags); in logfs_write_begin()
21 if (!page) in logfs_write_begin()
23 *pagep = page; in logfs_write_begin()
25 if ((len == PAGE_CACHE_SIZE) || PageUptodate(page)) in logfs_write_begin()
32 zero_user_segments(page, 0, start, end, PAGE_CACHE_SIZE); in logfs_write_begin()
35 return logfs_readpage_nolock(page); in logfs_write_begin()
39 loff_t pos, unsigned len, unsigned copied, struct page *page, in logfs_write_end() argument
43 pgoff_t index = page->index; in logfs_write_end()
[all …]
/fs/nilfs2/
Ddir.c58 static inline void nilfs_put_page(struct page *page) in nilfs_put_page() argument
60 kunmap(page); in nilfs_put_page()
61 page_cache_release(page); in nilfs_put_page()
83 static int nilfs_prepare_chunk(struct page *page, unsigned from, unsigned to) in nilfs_prepare_chunk() argument
85 loff_t pos = page_offset(page) + from; in nilfs_prepare_chunk()
86 return __block_write_begin(page, pos, to - from, nilfs_get_block); in nilfs_prepare_chunk()
89 static void nilfs_commit_chunk(struct page *page, in nilfs_commit_chunk() argument
94 loff_t pos = page_offset(page) + from; in nilfs_commit_chunk()
99 nr_dirty = nilfs_page_count_clean_buffers(page, from, to); in nilfs_commit_chunk()
100 copied = block_write_end(NULL, mapping, pos, len, len, page, NULL); in nilfs_commit_chunk()
[all …]
Dpage.c43 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, in __nilfs_get_page_block() argument
50 if (!page_has_buffers(page)) in __nilfs_get_page_block()
51 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block()
54 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block()
68 struct page *page; in nilfs_grab_buffer() local
71 page = grab_cache_page(mapping, index); in nilfs_grab_buffer()
72 if (unlikely(!page)) in nilfs_grab_buffer()
75 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
77 unlock_page(page); in nilfs_grab_buffer()
78 page_cache_release(page); in nilfs_grab_buffer()
[all …]
/fs/ecryptfs/
Dmmap.c47 struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) in ecryptfs_get_locked_page()
49 struct page *page = read_mapping_page(inode->i_mapping, index, NULL); in ecryptfs_get_locked_page() local
50 if (!IS_ERR(page)) in ecryptfs_get_locked_page()
51 lock_page(page); in ecryptfs_get_locked_page()
52 return page; in ecryptfs_get_locked_page()
65 static int ecryptfs_writepage(struct page *page, struct writeback_control *wbc) in ecryptfs_writepage() argument
69 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage()
72 "page (upper index [0x%.16lx])\n", page->index); in ecryptfs_writepage()
73 ClearPageUptodate(page); in ecryptfs_writepage()
76 SetPageUptodate(page); in ecryptfs_writepage()
[all …]
/fs/exofs/
Ddir.c41 static inline void exofs_put_page(struct page *page) in exofs_put_page() argument
43 kunmap(page); in exofs_put_page()
44 page_cache_release(page); in exofs_put_page()
63 static int exofs_commit_chunk(struct page *page, loff_t pos, unsigned len) in exofs_commit_chunk() argument
65 struct address_space *mapping = page->mapping; in exofs_commit_chunk()
71 if (!PageUptodate(page)) in exofs_commit_chunk()
72 SetPageUptodate(page); in exofs_commit_chunk()
78 set_page_dirty(page); in exofs_commit_chunk()
81 err = write_one_page(page, 1); in exofs_commit_chunk()
83 unlock_page(page); in exofs_commit_chunk()
[all …]
/fs/ubifs/
Dfile.c105 static int do_readpage(struct page *page) in do_readpage() argument
111 struct inode *inode = page->mapping->host; in do_readpage()
115 inode->i_ino, page->index, i_size, page->flags); in do_readpage()
116 ubifs_assert(!PageChecked(page)); in do_readpage()
117 ubifs_assert(!PagePrivate(page)); in do_readpage()
119 addr = kmap(page); in do_readpage()
121 block = page->index << UBIFS_BLOCKS_PER_PAGE_SHIFT; in do_readpage()
125 SetPageChecked(page); in do_readpage()
166 SetPageChecked(page); in do_readpage()
171 page->index, inode->i_ino, err); in do_readpage()
[all …]
/fs/minix/
Ddir.c28 static inline void dir_put_page(struct page *page) in dir_put_page() argument
30 kunmap(page); in dir_put_page()
31 page_cache_release(page); in dir_put_page()
53 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) in dir_commit_chunk() argument
55 struct address_space *mapping = page->mapping; in dir_commit_chunk()
58 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk()
65 err = write_one_page(page, 1); in dir_commit_chunk()
67 unlock_page(page); in dir_commit_chunk()
71 static struct page * dir_get_page(struct inode *dir, unsigned long n) in dir_get_page()
74 struct page *page = read_mapping_page(mapping, n, NULL); in dir_get_page() local
[all …]
/fs/f2fs/
Ddata.c37 struct page *node_page = dn->node_page; in __set_data_blkaddr()
176 struct page *find_data_page(struct inode *inode, pgoff_t index, bool sync) in find_data_page()
181 struct page *page; in find_data_page() local
184 page = find_get_page(mapping, index); in find_data_page()
185 if (page && PageUptodate(page)) in find_data_page()
186 return page; in find_data_page()
187 f2fs_put_page(page, 0); in find_data_page()
202 page = grab_cache_page(mapping, index); in find_data_page()
203 if (!page) in find_data_page()
206 if (PageUptodate(page)) { in find_data_page()
[all …]
Dnode.c27 static void clear_node_page_dirty(struct page *page) in clear_node_page_dirty() argument
29 struct address_space *mapping = page->mapping; in clear_node_page_dirty()
33 if (PageDirty(page)) { in clear_node_page_dirty()
36 page_index(page), in clear_node_page_dirty()
40 clear_page_dirty_for_io(page); in clear_node_page_dirty()
43 ClearPageUptodate(page); in clear_node_page_dirty()
46 static struct page *get_current_nat_page(struct f2fs_sb_info *sbi, nid_t nid) in get_current_nat_page()
52 static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid) in get_next_nat_page()
54 struct page *src_page; in get_next_nat_page()
55 struct page *dst_page; in get_next_nat_page()
[all …]
/fs/ext2/
Ddir.c67 static inline void ext2_put_page(struct page *page) in ext2_put_page() argument
69 kunmap(page); in ext2_put_page()
70 page_cache_release(page); in ext2_put_page()
93 static int ext2_commit_chunk(struct page *page, loff_t pos, unsigned len) in ext2_commit_chunk() argument
95 struct address_space *mapping = page->mapping; in ext2_commit_chunk()
100 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ext2_commit_chunk()
108 err = write_one_page(page, 1); in ext2_commit_chunk()
112 unlock_page(page); in ext2_commit_chunk()
118 static void ext2_check_page(struct page *page, int quiet) in ext2_check_page() argument
120 struct inode *dir = page->mapping->host; in ext2_check_page()
[all …]
/fs/ufs/
Ddir.c43 static int ufs_commit_chunk(struct page *page, loff_t pos, unsigned len) in ufs_commit_chunk() argument
45 struct address_space *mapping = page->mapping; in ufs_commit_chunk()
50 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ufs_commit_chunk()
56 err = write_one_page(page, 1); in ufs_commit_chunk()
58 unlock_page(page); in ufs_commit_chunk()
62 static inline void ufs_put_page(struct page *page) in ufs_put_page() argument
64 kunmap(page); in ufs_put_page()
65 page_cache_release(page); in ufs_put_page()
77 struct page *page; in ufs_inode_by_name() local
79 de = ufs_find_entry(dir, qstr, &page); in ufs_inode_by_name()
[all …]
/fs/gfs2/
Daops.c40 static 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()
96 static int gfs2_writepage_common(struct page *page, in gfs2_writepage_common() argument
99 struct inode *inode = page->mapping->host; in gfs2_writepage_common()
112 if (page->index > end_index || (page->index == end_index && !offset)) { in gfs2_writepage_common()
113 page->mapping->a_ops->invalidatepage(page, 0, PAGE_CACHE_SIZE); in gfs2_writepage_common()
118 redirty_page_for_writepage(wbc, page); in gfs2_writepage_common()
120 unlock_page(page); in gfs2_writepage_common()
131 static int gfs2_writeback_writepage(struct page *page, in gfs2_writeback_writepage() argument
136 ret = gfs2_writepage_common(page, wbc); in gfs2_writeback_writepage()
[all …]
/fs/
Dbuffer.c97 __clear_page_buffers(struct page *page) in __clear_page_buffers() argument
99 ClearPagePrivate(page); in __clear_page_buffers()
100 set_page_private(page, 0); in __clear_page_buffers()
101 page_cache_release(page); in __clear_page_buffers()
192 struct page *page; in __find_get_block_slow() local
196 page = find_get_page(bd_mapping, index); in __find_get_block_slow()
197 if (!page) in __find_get_block_slow()
201 if (!page_has_buffers(page)) in __find_get_block_slow()
203 head = page_buffers(page); in __find_get_block_slow()
235 page_cache_release(page); in __find_get_block_slow()
[all …]
Dmpage.c50 struct page *page = bvec->bv_page; in mpage_end_io() local
56 SetPageUptodate(page); in mpage_end_io()
58 ClearPageUptodate(page); in mpage_end_io()
59 SetPageError(page); in mpage_end_io()
61 unlock_page(page); in mpage_end_io()
64 SetPageError(page); in mpage_end_io()
65 if (page->mapping) in mpage_end_io()
66 set_bit(AS_EIO, &page->mapping->flags); in mpage_end_io()
68 end_page_writeback(page); in mpage_end_io()
113 map_buffer_to_page(struct page *page, struct buffer_head *bh, int page_block) in map_buffer_to_page() argument
[all …]
/fs/ntfs/
Daops.c63 struct page *page; in ntfs_end_buffer_async_read() local
68 page = bh->b_page; in ntfs_end_buffer_async_read()
69 vi = page->mapping->host; in ntfs_end_buffer_async_read()
78 file_ofs = ((s64)page->index << PAGE_CACHE_SHIFT) + in ntfs_end_buffer_async_read()
97 kaddr = kmap_atomic(page); in ntfs_end_buffer_async_read()
100 flush_dcache_page(page); in ntfs_end_buffer_async_read()
106 SetPageError(page); in ntfs_end_buffer_async_read()
110 first = page_buffers(page); in ntfs_end_buffer_async_read()
138 if (likely(page_uptodate && !PageError(page))) in ntfs_end_buffer_async_read()
139 SetPageUptodate(page); in ntfs_end_buffer_async_read()
[all …]
Dcompress.c100 static void zero_partial_compressed_page(struct page *page, in zero_partial_compressed_page() argument
103 u8 *kp = page_address(page); in zero_partial_compressed_page()
107 if (((s64)page->index << PAGE_CACHE_SHIFT) >= initialized_size) { in zero_partial_compressed_page()
123 static inline void handle_bounds_compressed_page(struct page *page, in handle_bounds_compressed_page() argument
126 if ((page->index >= (initialized_size >> PAGE_CACHE_SHIFT)) && in handle_bounds_compressed_page()
128 zero_partial_compressed_page(page, initialized_size); in handle_bounds_compressed_page()
169 static int ntfs_decompress(struct page *dest_pages[], int *dest_index, in ntfs_decompress()
185 struct page *dp; /* Current destination page being worked on. */ in ntfs_decompress()
482 int ntfs_read_compressed_block(struct page *page) in ntfs_read_compressed_block() argument
486 struct address_space *mapping = page->mapping; in ntfs_read_compressed_block()
[all …]
/fs/nfs/
Dfscache.h85 extern void __nfs_fscache_invalidate_page(struct page *, struct inode *);
86 extern int nfs_fscache_release_page(struct page *, gfp_t);
89 struct inode *, struct page *);
93 extern void __nfs_readpage_to_fscache(struct inode *, struct page *, int);
99 struct page *page) in nfs_fscache_wait_on_page_write() argument
101 if (PageFsCache(page)) in nfs_fscache_wait_on_page_write()
102 fscache_wait_on_page_write(nfsi->fscache, page); in nfs_fscache_wait_on_page_write()
109 static inline void nfs_fscache_invalidate_page(struct page *page, in nfs_fscache_invalidate_page() argument
112 if (PageFsCache(page)) in nfs_fscache_invalidate_page()
113 __nfs_fscache_invalidate_page(page, inode); in nfs_fscache_invalidate_page()
[all …]

12345678910>>...15