1. A method for inline deduplication of data, the method comprising: a computer identifying a relationship among a subset of a set of data blocks, a basis of the relationship forming a context shared by the subset of the set of data blocks; the computer selecting a code data structure from a set of code data structures using the context, wherein the context is associated with the code data structure, and wherein the code data structure includes a set of codes; the computer computing, for a first data block in the subset of data blocks, a first code corresponding to a content of the first data block; the computer determining whether the first code matches a stored code in the code data structure; the computer replacing, responsive to the first code matching the stored code, the first data block with a reference to an instance of the first data block; and the computer causing the reference to be stored in a target data processing system.