fs/unionfs/: Remove unused structure members & macros
authorJosef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Sat, 17 Feb 2007 08:25:15 +0000 (03:25 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 Jan 2009 23:20:17 +0000 (18:20 -0500)
This patch removes:
- hidden_mnt pointer from struct unionfs_data
- mount_flag from struct unionfs_sb_info
- mount_flag related macros

Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/union.h

index fc87b032d4aed3b3229a70c07edac47de79c8eae..60276c7ab3b7482d283242f53288727de41b5b4c 100644 (file)
@@ -54,9 +54,6 @@
 /* unionfs root inode number */
 #define UNIONFS_ROOT_INO     1
 
-/* Mount time flags */
-#define MOUNT_FLAG(sb)     (UNIONFS_SB(sb)->mount_flag)
-
 /* number of characters while generating unique temporary file names */
 #define        UNIONFS_TMPNAM_LEN      12
 
@@ -124,7 +121,6 @@ struct unionfs_dentry_info {
 /* These are the pointers to our various objects. */
 struct unionfs_data {
        struct super_block *sb;
-       struct vfsmount *hidden_mnt;
        atomic_t sbcount;
        int branchperms;
 };
@@ -134,7 +130,6 @@ struct unionfs_sb_info {
        int bend;
 
        atomic_t generation;
-       unsigned long mount_flag;
        struct rw_semaphore rwsem;
 
        struct unionfs_data *data;
@@ -341,8 +336,6 @@ static inline int d_deleted(struct dentry *d)
 
 struct dentry *unionfs_lookup_backend(struct dentry *dentry, struct nameidata *nd, int lookupmode);
 
-#define IS_SET(sb, check_flag) ((check_flag) & MOUNT_FLAG(sb))
-
 /* unionfs_permission, check if we should bypass error to facilitate copyup */
 #define IS_COPYUP_ERR(err) ((err) == -EROFS)
 
@@ -405,8 +398,6 @@ static inline int is_robranch(const struct dentry *dentry)
 #define UNIONFS_DIR_OPAQUE_NAME "__dir_opaque"
 #define UNIONFS_DIR_OPAQUE UNIONFS_WHPFX UNIONFS_DIR_OPAQUE_NAME
 
-#define VALID_MOUNT_FLAGS (0)
-
 #ifndef DEFAULT_POLLMASK
 #define DEFAULT_POLLMASK (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)
 #endif