Thanks for comments and attention.
So in short: Two files with identical content fingerprints
(user-defined, such as sha256) will share the same page cache which
associated with an anonymous inode. Data operations are redirected to
the anonymous inode while metadata operations (include locating the data
position on disk) are still performed on the original inode(realinode).
Sorry for the ambiguous annotation, and I will refine the cover-letter
in next iteration to make it clear as possible.
Thanks,
Hongbo
On 2026/1/17 0:43, Gao Xiang wrote:
On 2026/1/16 23:36, Christoph Hellwig wrote:
Also do you have a git tree for the whole feature?
I prepared a test tree for Hongbo but it's v14:
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/log/?h=erofs/pagecache-share
I think v15 is almost close to the final status,
I hope Hongbo addresses your comment and I will
review the remaining parts too and apply to
linux-next at the beginning of next week.
Thanks,
Gao Xiang