[RFC/PATCH 7/8] revoke: support for ext2 and ext3 V7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Pekka Enberg <[email protected]>

Add revoke support to ext2, ext3 and ext4 by wiring f_ops->revoke with
generic_file_revoke.

Cc: Alan Cox <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
---

 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-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux