shmem: document how to "persist" data when using shmem_*file_setup
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:15 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:51 +0000 (11:36 +0530)
commit9d8b36744935f83c5553e6f242b9961f676628ed
tree4bae63bbc52de61910b77e6f891965bab73409dc
parentbe9d93661d548a41bb8f135b9953191f0fb2e44b
shmem: document how to "persist" data when using shmem_*file_setup

Add a blurb that simply dirtying the folio will persist data for in-kernel
shmem files.  This is what most of the callers already do.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
mm/shmem.c