[v2,08/10] jffs2: define integrity_read method

Submitted by Mimi Zohar on June 21, 2017, 6:18 p.m.

Details

Message ID 1498069110-10009-9-git-send-email-zohar@linux.vnet.ibm.com
State New
Headers show

Commit Message

Mimi Zohar June 21, 2017, 6:18 p.m.
Define an ->integrity_read file operation method to read data for
integrity hash collection.

Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
---
 fs/jffs2/file.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig June 28, 2017, 2:39 p.m.
should be folded into patch 2.

Patch hide | download patch | download mbox

diff --git a/fs/jffs2/file.c b/fs/jffs2/file.c
index c12476e309c6..5a63034cccf5 100644
--- a/fs/jffs2/file.c
+++ b/fs/jffs2/file.c
@@ -57,6 +57,7 @@  const struct file_operations jffs2_file_operations =
 	.mmap =		generic_file_readonly_mmap,
 	.fsync =	jffs2_fsync,
 	.splice_read =	generic_file_splice_read,
+	.integrity_read = generic_file_read_iter,
 };
 
 /* jffs2_file_inode_operations */