Lines Matching defs:mapping
142 * @mapping: pointer to struct address_space
144 int nfs_sync_mapping(struct address_space *mapping)
148 if (mapping->nrpages != 0) {
149 unmap_mapping_range(mapping, 0, 0, 0);
150 ret = nfs_wb_all(mapping->host);
255 void nfs_zap_mapping(struct inode *inode, struct address_space *mapping)
257 if (mapping->nrpages != 0) {
1289 static int nfs_invalidate_mapping(struct inode *inode, struct address_space *mapping)
1294 if (mapping->nrpages != 0) {
1296 ret = nfs_sync_mapping(mapping);
1300 ret = invalidate_inode_pages2(mapping);
1313 * nfs_clear_invalid_mapping - Conditionally clear a mapping
1314 * @mapping: pointer to mapping
1316 * If the NFS_INO_INVALID_DATA inode flag is set, clear the mapping.
1318 int nfs_clear_invalid_mapping(struct address_space *mapping)
1320 struct inode *inode = mapping->host;
1329 * can clear the flag, and then another checks it before the mapping
1360 ret = nfs_invalidate_mapping(inode, mapping);
1400 * @mapping: pointer to mapping
1402 int nfs_revalidate_mapping(struct inode *inode, struct address_space *mapping)
1414 return nfs_clear_invalid_mapping(mapping);