From: Pekka Enberg <penberg@xxxxxxxxxxxxxx> Add revoke support to ext2, ext3 and ext4 by wiring f_ops->revoke with generic_file_revoke. Cc: Alan Cox <alan@xxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx> --- fs/ext2/file.c | 1 + fs/ext3/file.c | 1 + fs/ext4/file.c | 1 + 3 files changed, 3 insertions(+) Index: 2.6/fs/ext2/file.c =================================================================== --- 2.6.orig/fs/ext2/file.c 2007-11-23 09:58:11.000000000 +0200 +++ 2.6/fs/ext2/file.c 2007-12-14 16:41:02.000000000 +0200 @@ -58,6 +58,7 @@ const struct file_operations ext2_file_o .fsync = ext2_sync_file, .splice_read = generic_file_splice_read, .splice_write = generic_file_splice_write, + .revoke = generic_file_revoke, }; #ifdef CONFIG_EXT2_FS_XIP Index: 2.6/fs/ext3/file.c =================================================================== --- 2.6.orig/fs/ext3/file.c 2007-11-23 09:58:11.000000000 +0200 +++ 2.6/fs/ext3/file.c 2007-12-14 16:41:02.000000000 +0200 @@ -122,6 +122,7 @@ const struct file_operations ext3_file_o .fsync = ext3_sync_file, .splice_read = generic_file_splice_read, .splice_write = generic_file_splice_write, + .revoke = generic_file_revoke, }; const struct inode_operations ext3_file_inode_operations = { Index: 2.6/fs/ext4/file.c =================================================================== --- 2.6.orig/fs/ext4/file.c 2007-11-23 09:58:11.000000000 +0200 +++ 2.6/fs/ext4/file.c 2007-12-14 16:41:02.000000000 +0200 @@ -122,6 +122,7 @@ const struct file_operations ext4_file_o .fsync = ext4_sync_file, .splice_read = generic_file_splice_read, .splice_write = generic_file_splice_write, + .revoke = generic_file_revoke, }; const struct inode_operations ext4_file_inode_operations = { - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html