/fs/jfs/ |
D | jfs_metapage.c | 60 unlock_page(mp->page); in __lock_metapage() 62 lock_page(mp->page); in __lock_metapage() 91 #define mp_anchor(page) ((struct meta_anchor *)page_private(page)) argument 93 static inline struct metapage *page_to_mp(struct page *page, int offset) in page_to_mp() argument 95 if (!PagePrivate(page)) in page_to_mp() 97 return mp_anchor(page)->mp[offset >> L2PSIZE]; in page_to_mp() 100 static inline int insert_metapage(struct page *page, struct metapage *mp) in insert_metapage() argument 106 if (PagePrivate(page)) in insert_metapage() 107 a = mp_anchor(page); in insert_metapage() 112 set_page_private(page, (unsigned long)a); in insert_metapage() [all …]
|
/fs/sysv/ |
D | dir.c | 30 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/ |
D | file.c | 21 static int afs_readpage(struct file *file, struct page *page); 22 static void afs_invalidatepage(struct page *page, unsigned long offset); 23 static int afs_releasepage(struct page *page, gfp_t gfp_flags); 24 static int afs_launder_page(struct page *page); 106 struct page *page, in afs_readpage_read_complete() argument 110 _enter("%p,%p,%p,%d", cookie_data, page, data, error); in afs_readpage_read_complete() 113 SetPageError(page); in afs_readpage_read_complete() 115 SetPageUptodate(page); in afs_readpage_read_complete() 116 unlock_page(page); in afs_readpage_read_complete() 126 struct page *page, in afs_readpage_write_complete() argument [all …]
|
D | write.c | 20 struct page *page); 25 int afs_set_page_dirty(struct page *page) in afs_set_page_dirty() argument 28 return __set_page_dirty_nobuffers(page); in afs_set_page_dirty() 87 loff_t pos, unsigned len, struct page *page) in afs_fill_page() argument 103 ret = afs_vnode_fetch_data(vnode, key, 0, eof, page); in afs_fill_page() 122 struct page **pagep, void **fsdata) in afs_write_begin() 126 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/minix/ |
D | dir.c | 28 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/ubifs/ |
D | file.c | 105 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/ext2/ |
D | dir.c | 58 static inline void ext2_put_page(struct page *page) in ext2_put_page() argument 60 kunmap(page); in ext2_put_page() 61 page_cache_release(page); in ext2_put_page() 84 static int ext2_commit_chunk(struct page *page, loff_t pos, unsigned len) in ext2_commit_chunk() argument 86 struct address_space *mapping = page->mapping; in ext2_commit_chunk() 91 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ext2_commit_chunk() 99 err = write_one_page(page, 1); in ext2_commit_chunk() 103 unlock_page(page); in ext2_commit_chunk() 109 static void ext2_check_page(struct page *page, int quiet) in ext2_check_page() argument 111 struct inode *dir = page->mapping->host; in ext2_check_page() [all …]
|
/fs/ufs/ |
D | dir.c | 43 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, dentry, &page); in ufs_inode_by_name() [all …]
|
/fs/ecryptfs/ |
D | mmap.c | 46 struct page *ecryptfs_get_locked_page(struct file *file, loff_t index) in ecryptfs_get_locked_page() 51 struct page *page; in ecryptfs_get_locked_page() local 56 page = read_mapping_page(mapping, index, (void *)file); in ecryptfs_get_locked_page() 57 if (!IS_ERR(page)) in ecryptfs_get_locked_page() 58 lock_page(page); in ecryptfs_get_locked_page() 59 return page; in ecryptfs_get_locked_page() 68 static int ecryptfs_writepage(struct page *page, struct writeback_control *wbc) in ecryptfs_writepage() argument 72 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage() 75 "page (upper index [0x%.16x])\n", page->index); in ecryptfs_writepage() 76 ClearPageUptodate(page); in ecryptfs_writepage() [all …]
|
/fs/ |
D | buffer.c | 95 __clear_page_buffers(struct page *page) in __clear_page_buffers() argument 97 ClearPagePrivate(page); in __clear_page_buffers() 98 set_page_private(page, 0); in __clear_page_buffers() 99 page_cache_release(page); in __clear_page_buffers() 333 struct page *page; in __find_get_block_slow() local 337 page = find_get_page(bd_mapping, index); in __find_get_block_slow() 338 if (!page) in __find_get_block_slow() 342 if (!page_has_buffers(page)) in __find_get_block_slow() 344 head = page_buffers(page); in __find_get_block_slow() 373 page_cache_release(page); in __find_get_block_slow() [all …]
|
D | mpage.c | 48 struct page *page = bvec->bv_page; in mpage_end_io_read() local 54 SetPageUptodate(page); in mpage_end_io_read() 56 ClearPageUptodate(page); in mpage_end_io_read() 57 SetPageError(page); in mpage_end_io_read() 59 unlock_page(page); in mpage_end_io_read() 70 struct page *page = bvec->bv_page; in mpage_end_io_write() local 76 SetPageError(page); in mpage_end_io_write() 77 if (page->mapping) in mpage_end_io_write() 78 set_bit(AS_EIO, &page->mapping->flags); in mpage_end_io_write() 80 end_page_writeback(page); in mpage_end_io_write() [all …]
|
/fs/gfs2/ |
D | ops_address.c | 41 static void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, in gfs2_page_add_databufs() argument 44 struct buffer_head *head = page_buffers(page); in gfs2_page_add_databufs() 97 static int gfs2_writepage_common(struct page *page, in gfs2_writepage_common() argument 100 struct inode *inode = page->mapping->host; in gfs2_writepage_common() 113 if (page->index > end_index || (page->index == end_index && !offset)) { in gfs2_writepage_common() 114 page->mapping->a_ops->invalidatepage(page, 0); in gfs2_writepage_common() 119 redirty_page_for_writepage(wbc, page); in gfs2_writepage_common() 121 unlock_page(page); in gfs2_writepage_common() 132 static int gfs2_writeback_writepage(struct page *page, in gfs2_writeback_writepage() argument 137 ret = gfs2_writepage_common(page, wbc); in gfs2_writeback_writepage() [all …]
|
/fs/ntfs/ |
D | aops.c | 62 struct page *page; in ntfs_end_buffer_async_read() local 67 page = bh->b_page; in ntfs_end_buffer_async_read() 68 vi = page->mapping->host; in ntfs_end_buffer_async_read() 77 file_ofs = ((s64)page->index << PAGE_CACHE_SHIFT) + in ntfs_end_buffer_async_read() 96 kaddr = kmap_atomic(page, KM_BIO_SRC_IRQ); in ntfs_end_buffer_async_read() 99 flush_dcache_page(page); in ntfs_end_buffer_async_read() 105 SetPageError(page); in ntfs_end_buffer_async_read() 109 first = page_buffers(page); in ntfs_end_buffer_async_read() 137 if (likely(page_uptodate && !PageError(page))) in ntfs_end_buffer_async_read() 138 SetPageUptodate(page); in ntfs_end_buffer_async_read() [all …]
|
D | compress.c | 99 static void zero_partial_compressed_page(struct page *page, in zero_partial_compressed_page() argument 102 u8 *kp = page_address(page); in zero_partial_compressed_page() 106 if (((s64)page->index << PAGE_CACHE_SHIFT) >= initialized_size) { in zero_partial_compressed_page() 122 static inline void handle_bounds_compressed_page(struct page *page, in handle_bounds_compressed_page() argument 125 if ((page->index >= (initialized_size >> PAGE_CACHE_SHIFT)) && in handle_bounds_compressed_page() 127 zero_partial_compressed_page(page, initialized_size); in handle_bounds_compressed_page() 168 static int ntfs_decompress(struct page *dest_pages[], int *dest_index, in ntfs_decompress() 184 struct page *dp; /* Current destination page being worked on. */ in ntfs_decompress() 481 int ntfs_read_compressed_block(struct page *page) in ntfs_read_compressed_block() argument 485 struct address_space *mapping = page->mapping; in ntfs_read_compressed_block() [all …]
|
D | aops.h | 40 static inline void ntfs_unmap_page(struct page *page) in ntfs_unmap_page() argument 42 kunmap(page); in ntfs_unmap_page() 43 page_cache_release(page); in ntfs_unmap_page() 86 static inline struct page *ntfs_map_page(struct address_space *mapping, in ntfs_map_page() 89 struct page *page = read_mapping_page(mapping, index, NULL); in ntfs_map_page() local 91 if (!IS_ERR(page)) { in ntfs_map_page() 92 kmap(page); in ntfs_map_page() 93 if (!PageError(page)) in ntfs_map_page() 94 return page; in ntfs_map_page() 95 ntfs_unmap_page(page); in ntfs_map_page() [all …]
|
D | bitmap.c | 53 struct page *page; in __ntfs_bitmap_set_bits_in_run() local 75 page = ntfs_map_page(mapping, index); in __ntfs_bitmap_set_bits_in_run() 76 if (IS_ERR(page)) { in __ntfs_bitmap_set_bits_in_run() 79 "%li), aborting.", PTR_ERR(page)); in __ntfs_bitmap_set_bits_in_run() 80 return PTR_ERR(page); in __ntfs_bitmap_set_bits_in_run() 82 kaddr = page_address(page); in __ntfs_bitmap_set_bits_in_run() 124 flush_dcache_page(page); in __ntfs_bitmap_set_bits_in_run() 125 set_page_dirty(page); in __ntfs_bitmap_set_bits_in_run() 126 ntfs_unmap_page(page); in __ntfs_bitmap_set_bits_in_run() 127 page = ntfs_map_page(mapping, ++index); in __ntfs_bitmap_set_bits_in_run() [all …]
|
/fs/btrfs/ |
D | extent_io.c | 961 struct page *page; in set_range_dirty() local 964 page = find_get_page(tree->mapping, index); in set_range_dirty() 965 BUG_ON(!page); in set_range_dirty() 966 __set_page_dirty_nobuffers(page); in set_range_dirty() 967 page_cache_release(page); in set_range_dirty() 981 struct page *page; in set_range_writeback() local 984 page = find_get_page(tree->mapping, index); in set_range_writeback() 985 BUG_ON(!page); in set_range_writeback() 986 set_page_writeback(page); in set_range_writeback() 987 page_cache_release(page); in set_range_writeback() [all …]
|
D | extent_io.h | 42 int (*fill_delalloc)(struct inode *inode, struct page *locked_page, 45 int (*writepage_start_hook)(struct page *page, u64 start, u64 end); 46 int (*writepage_io_hook)(struct page *page, u64 start, u64 end); 48 int (*merge_bio_hook)(struct page *page, unsigned long offset, 51 int (*readpage_io_hook)(struct page *page, u64 start, u64 end); 52 int (*readpage_io_failed_hook)(struct bio *bio, struct page *page, 55 int (*writepage_io_failed_hook)(struct bio *bio, struct page *page, 58 int (*readpage_end_io_hook)(struct page *page, u64 start, u64 end, 60 int (*writepage_end_io_hook)(struct page *page, u64 start, u64 end, 66 int (*write_cache_pages_lock_hook)(struct page *page); [all …]
|
D | compression.c | 52 struct page **compressed_pages; 120 struct page *page; in check_compressed_csum() local 130 page = cb->compressed_pages[i]; in check_compressed_csum() 133 kaddr = kmap_atomic(page, KM_USER0); in check_compressed_csum() 170 struct page *page; in end_compressed_bio_read() local 204 page = cb->compressed_pages[index]; in end_compressed_bio_read() 205 page->mapping = NULL; in end_compressed_bio_read() 206 page_cache_release(page); in end_compressed_bio_read() 244 struct page *pages[16]; in end_compressed_writeback() 282 struct page *page; in end_compressed_bio_write() local [all …]
|
/fs/nfs/ |
D | write.c | 77 p->pagevec = kcalloc(pagecount, sizeof(struct page *), GFP_NOFS); in nfs_writedata_alloc() 109 static struct nfs_page *nfs_page_find_request_locked(struct page *page) in nfs_page_find_request_locked() argument 113 if (PagePrivate(page)) { in nfs_page_find_request_locked() 114 req = (struct nfs_page *)page_private(page); in nfs_page_find_request_locked() 121 static struct nfs_page *nfs_page_find_request(struct page *page) in nfs_page_find_request() argument 123 struct inode *inode = page->mapping->host; in nfs_page_find_request() 127 req = nfs_page_find_request_locked(page); in nfs_page_find_request() 133 static void nfs_grow_file(struct page *page, unsigned int offset, unsigned int count) in nfs_grow_file() argument 135 struct inode *inode = page->mapping->host; in nfs_grow_file() 142 if (i_size > 0 && page->index < end_index) in nfs_grow_file() [all …]
|
D | symlink.c | 30 static int nfs_symlink_filler(struct inode *inode, struct page *page) in nfs_symlink_filler() argument 34 error = NFS_PROTO(inode)->readlink(inode, page, 0, PAGE_SIZE); in nfs_symlink_filler() 37 SetPageUptodate(page); in nfs_symlink_filler() 38 unlock_page(page); in nfs_symlink_filler() 42 SetPageError(page); in nfs_symlink_filler() 43 unlock_page(page); in nfs_symlink_filler() 50 struct page *page; in nfs_follow_link() local 56 page = read_cache_page(&inode->i_data, 0, in nfs_follow_link() 58 if (IS_ERR(page)) { in nfs_follow_link() 59 err = page; in nfs_follow_link() [all …]
|
/fs/isofs/ |
D | compress.c | 43 static int zisofs_readpage(struct file *file, struct page *page) in zisofs_readpage() argument 62 struct page *pages[zisofs_block_pages]; in zisofs_readpage() 63 unsigned long index = page->index; in zisofs_readpage() 69 pages[xpage] = page; in zisofs_readpage() 80 if (page->index >= maxpage) { in zisofs_readpage() 81 SetPageUptodate(page); in zisofs_readpage() 82 unlock_page(page); in zisofs_readpage() 92 page = pages[i]; in zisofs_readpage() 93 if ( page ) { in zisofs_readpage() 94 ClearPageError(page); in zisofs_readpage() [all …]
|
/fs/smbfs/ |
D | file.c | 55 smb_readpage_sync(struct dentry *dentry, struct page *page) in smb_readpage_sync() argument 57 char *buffer = kmap(page); in smb_readpage_sync() 58 loff_t offset = (loff_t)page->index << PAGE_CACHE_SHIFT; in smb_readpage_sync() 89 flush_dcache_page(page); in smb_readpage_sync() 90 SetPageUptodate(page); in smb_readpage_sync() 94 kunmap(page); in smb_readpage_sync() 95 unlock_page(page); in smb_readpage_sync() 103 smb_readpage(struct file *file, struct page *page) in smb_readpage() argument 108 page_cache_get(page); in smb_readpage() 109 error = smb_readpage_sync(dentry, page); in smb_readpage() [all …]
|
/fs/xfs/linux-2.6/ |
D | xfs_aops.c | 81 struct page *page, in xfs_count_page_state() argument 90 bh = head = page_buffers(page); in xfs_count_page_state() 106 struct page *page, in xfs_page_trace() argument 111 loff_t offset = page_offset(page); in xfs_page_trace() 114 if (page_has_buffers(page)) in xfs_page_trace() 115 xfs_count_page_state(page, &delalloc, &unmapped, &unwritten); in xfs_page_trace() 125 (void *)page, in xfs_page_trace() 140 #define xfs_page_trace(tag, inode, page, pgoff) argument 448 struct page *page, in xfs_start_page_writeback() argument 452 ASSERT(PageLocked(page)); in xfs_start_page_writeback() [all …]
|
/fs/hfsplus/ |
D | bitmap.c | 20 struct page *page; in hfsplus_block_allocate() local 34 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate() 35 if (IS_ERR(page)) { in hfsplus_block_allocate() 39 pptr = kmap(page); in hfsplus_block_allocate() 74 kunmap(page); in hfsplus_block_allocate() 78 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate() 80 if (IS_ERR(page)) { in hfsplus_block_allocate() 84 curr = pptr = kmap(page); in hfsplus_block_allocate() 126 set_page_dirty(page); in hfsplus_block_allocate() 127 kunmap(page); in hfsplus_block_allocate() [all …]
|