- inode-diet-move-i_pipe-into-a-union-ecryptfs.patch removed from -mm tree

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

 



The patch titled

     inode_diet: Replace inode.u.generic_ip with inode.i_private

has been removed from the -mm tree.  Its filename is

     inode-diet-move-i_pipe-into-a-union-ecryptfs.patch

This patch was dropped because it was folded into ecryptfs-fs-makefile-and-fs-kconfig.patch

------------------------------------------------------
Subject: inode_diet: Replace inode.u.generic_ip with inode.i_private
From: "Theodore Ts'o" <tytso@xxxxxxx>

The filesystem or device-specific pointer in the inode is inside a union,
which is pretty pointless given that all 30+ users of this field have been
using the void pointer.  Get rid of the union and rename it to i_private, with
a comment to explain who is allowed to use the void pointer.  This is just a
cleanup, but it allows us to reuse the union 'u' for something something where
the union will actually be used.

Signed-off-by: "Theodore Ts'o" <tytso@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/ecryptfs/ecryptfs_kernel.h |    8 ++++----
 fs/ecryptfs/super.c           |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff -puN fs/ecryptfs/ecryptfs_kernel.h~inode-diet-move-i_pipe-into-a-union-ecryptfs fs/ecryptfs/ecryptfs_kernel.h
--- a/fs/ecryptfs/ecryptfs_kernel.h~inode-diet-move-i_pipe-into-a-union-ecryptfs
+++ a/fs/ecryptfs/ecryptfs_kernel.h
@@ -288,25 +288,25 @@ ecryptfs_set_file_lower(struct file *fil
 static inline struct ecryptfs_inode_info *
 ecryptfs_inode_to_private(struct inode *inode)
 {
-	return (struct ecryptfs_inode_info *)inode->u.generic_ip;
+	return (struct ecryptfs_inode_info *)inode->i_private;
 }
 
 static inline void
 ecryptfs_set_inode_private(struct inode *inode,
 			   struct ecryptfs_inode_info *inode_info)
 {
-	inode->u.generic_ip = inode_info;
+	inode->i_private = inode_info;
 }
 
 static inline struct inode *ecryptfs_inode_to_lower(struct inode *inode)
 {
-	return ((struct ecryptfs_inode_info *)inode->u.generic_ip)->wii_inode;
+	return ((struct ecryptfs_inode_info *)inode->i_private)->wii_inode;
 }
 
 static inline void
 ecryptfs_set_inode_lower(struct inode *inode, struct inode *lower_inode)
 {
-	((struct ecryptfs_inode_info *)inode->u.generic_ip)->wii_inode =
+	((struct ecryptfs_inode_info *)inode->i_private)->wii_inode =
 		lower_inode;
 }
 
diff -puN fs/ecryptfs/super.c~inode-diet-move-i_pipe-into-a-union-ecryptfs fs/ecryptfs/super.c
--- a/fs/ecryptfs/super.c~inode-diet-move-i_pipe-into-a-union-ecryptfs
+++ a/fs/ecryptfs/super.c
@@ -86,7 +86,7 @@ static void ecryptfs_destroy_inode(struc
 static void ecryptfs_read_inode(struct inode *inode)
 {
 	/* This is where we setup the self-reference in the vfs_inode's
-	 * u.generic_ip. That way we don't have to walk the list again. */
+	 * i_private. That way we don't have to walk the list again. */
 	ecryptfs_set_inode_private(inode,
 				   list_entry(inode, struct ecryptfs_inode_info,
 					      vfs_inode));
_

Patches currently in -mm which might be from tytso@xxxxxxx are

origin.patch
ecryptfs-fs-makefile-and-fs-kconfig.patch
inode-diet-move-i_pipe-into-a-union-ecryptfs.patch
inode-diet-eliminate-i_blksize-and-use-a-per-superblock-default-ecryptfs.patch
inode_diet-replace-inodeugeneric_ip-with-inodei_private-reiser4.patch
inode-diet-eliminate-i_blksize-and-use-a-per-superblock-default-reiser4.patch
statistics-replace-inode-ugeneric_ip-with-i_private.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux