diff options
author | Martin Brandenburg <martin@omnibond.com> | 2018-04-03 12:27:14 -0400 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2018-04-03 21:55:28 -0400 |
commit | 209469d978ae91e460b37b32f2c2834d93e1ff13 (patch) | |
tree | d47b72d742b7efe4dba0d197b0987e7321ecfc2f | |
parent | bdd6f083586ff17eb3959cca88212fdb60ca53d1 (diff) |
orangefs: remove unused code
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
-rw-r--r-- | fs/orangefs/orangefs-debug.h | 6 | ||||
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 77 | ||||
-rw-r--r-- | fs/orangefs/protocol.h | 45 |
3 files changed, 0 insertions, 128 deletions
diff --git a/fs/orangefs/orangefs-debug.h b/fs/orangefs/orangefs-debug.h index c7db56a31b92..6e079d4230d0 100644 --- a/fs/orangefs/orangefs-debug.h +++ b/fs/orangefs/orangefs-debug.h | |||
@@ -43,12 +43,6 @@ | |||
43 | #define GOSSIP_MAX_NR 16 | 43 | #define GOSSIP_MAX_NR 16 |
44 | #define GOSSIP_MAX_DEBUG (((__u64)1 << GOSSIP_MAX_NR) - 1) | 44 | #define GOSSIP_MAX_DEBUG (((__u64)1 << GOSSIP_MAX_NR) - 1) |
45 | 45 | ||
46 | /*function prototypes*/ | ||
47 | __u64 ORANGEFS_kmod_eventlog_to_mask(const char *event_logging); | ||
48 | __u64 ORANGEFS_debug_eventlog_to_mask(const char *event_logging); | ||
49 | char *ORANGEFS_debug_mask_to_eventlog(__u64 mask); | ||
50 | char *ORANGEFS_kmod_mask_to_eventlog(__u64 mask); | ||
51 | |||
52 | /* a private internal type */ | 46 | /* a private internal type */ |
53 | struct __keyword_mask_s { | 47 | struct __keyword_mask_s { |
54 | const char *keyword; | 48 | const char *keyword; |
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index f49d53de8901..c29bb0ebc6bb 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h | |||
@@ -65,11 +65,7 @@ | |||
65 | #define ORANGEFS_REQDEVICE_NAME "pvfs2-req" | 65 | #define ORANGEFS_REQDEVICE_NAME "pvfs2-req" |
66 | 66 | ||
67 | #define ORANGEFS_DEVREQ_MAGIC 0x20030529 | 67 | #define ORANGEFS_DEVREQ_MAGIC 0x20030529 |
68 | #define ORANGEFS_LINK_MAX 0x000000FF | ||
69 | #define ORANGEFS_PURGE_RETRY_COUNT 0x00000005 | 68 | #define ORANGEFS_PURGE_RETRY_COUNT 0x00000005 |
70 | #define ORANGEFS_MAX_NUM_OPTIONS 0x00000004 | ||
71 | #define ORANGEFS_MAX_MOUNT_OPT_LEN 0x00000080 | ||
72 | #define ORANGEFS_MAX_FSKEY_LEN 64 | ||
73 | 69 | ||
74 | #define MAX_DEV_REQ_UPSIZE (2 * sizeof(__s32) + \ | 70 | #define MAX_DEV_REQ_UPSIZE (2 * sizeof(__s32) + \ |
75 | sizeof(__u64) + sizeof(struct orangefs_upcall_s)) | 71 | sizeof(__u64) + sizeof(struct orangefs_upcall_s)) |
@@ -113,15 +109,6 @@ extern struct posix_acl *orangefs_get_acl(struct inode *inode, int type); | |||
113 | extern int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type); | 109 | extern int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type); |
114 | 110 | ||
115 | /* | 111 | /* |
116 | * Redefine xtvec structure so that we could move helper functions out of | ||
117 | * the define | ||
118 | */ | ||
119 | struct xtvec { | ||
120 | __kernel_off_t xtv_off; /* must be off_t */ | ||
121 | __kernel_size_t xtv_len; /* must be size_t */ | ||
122 | }; | ||
123 | |||
124 | /* | ||
125 | * orangefs data structures | 112 | * orangefs data structures |
126 | */ | 113 | */ |
127 | struct orangefs_kernel_op_s { | 114 | struct orangefs_kernel_op_s { |
@@ -224,39 +211,6 @@ struct orangefs_sb_info_s { | |||
224 | struct list_head list; | 211 | struct list_head list; |
225 | }; | 212 | }; |
226 | 213 | ||
227 | /* | ||
228 | * structure that holds the state of any async I/O operation issued | ||
229 | * through the VFS. Needed especially to handle cancellation requests | ||
230 | * or even completion notification so that the VFS client-side daemon | ||
231 | * can free up its vfs_request slots. | ||
232 | */ | ||
233 | struct orangefs_kiocb_s { | ||
234 | /* the pointer to the task that initiated the AIO */ | ||
235 | struct task_struct *tsk; | ||
236 | |||
237 | /* pointer to the kiocb that kicked this operation */ | ||
238 | struct kiocb *kiocb; | ||
239 | |||
240 | /* buffer index that was used for the I/O */ | ||
241 | struct orangefs_bufmap *bufmap; | ||
242 | int buffer_index; | ||
243 | |||
244 | /* orangefs kernel operation type */ | ||
245 | struct orangefs_kernel_op_s *op; | ||
246 | |||
247 | /* set to indicate the type of the operation */ | ||
248 | int rw; | ||
249 | |||
250 | /* file offset */ | ||
251 | loff_t offset; | ||
252 | |||
253 | /* and the count in bytes */ | ||
254 | size_t bytes_to_be_copied; | ||
255 | |||
256 | ssize_t bytes_copied; | ||
257 | int needs_cleanup; | ||
258 | }; | ||
259 | |||
260 | struct orangefs_stats { | 214 | struct orangefs_stats { |
261 | unsigned long cache_hits; | 215 | unsigned long cache_hits; |
262 | unsigned long cache_misses; | 216 | unsigned long cache_misses; |
@@ -305,21 +259,6 @@ static inline struct orangefs_khandle *get_khandle_from_ino(struct inode *inode) | |||
305 | return &(ORANGEFS_I(inode)->refn.khandle); | 259 | return &(ORANGEFS_I(inode)->refn.khandle); |
306 | } | 260 | } |
307 | 261 | ||
308 | static inline ino_t get_ino_from_khandle(struct inode *inode) | ||
309 | { | ||
310 | struct orangefs_khandle *khandle; | ||
311 | ino_t ino; | ||
312 | |||
313 | khandle = get_khandle_from_ino(inode); | ||
314 | ino = orangefs_khandle_to_ino(khandle); | ||
315 | return ino; | ||
316 | } | ||
317 | |||
318 | static inline ino_t get_parent_ino_from_dentry(struct dentry *dentry) | ||
319 | { | ||
320 | return get_ino_from_khandle(dentry->d_parent->d_inode); | ||
321 | } | ||
322 | |||
323 | static inline int is_root_handle(struct inode *inode) | 262 | static inline int is_root_handle(struct inode *inode) |
324 | { | 263 | { |
325 | gossip_debug(GOSSIP_DCACHE_DEBUG, | 264 | gossip_debug(GOSSIP_DCACHE_DEBUG, |
@@ -391,7 +330,6 @@ void fsid_key_table_finalize(void); | |||
391 | /* | 330 | /* |
392 | * defined in inode.c | 331 | * defined in inode.c |
393 | */ | 332 | */ |
394 | __u32 convert_to_orangefs_mask(unsigned long lite_mask); | ||
395 | struct inode *orangefs_new_inode(struct super_block *sb, | 333 | struct inode *orangefs_new_inode(struct super_block *sb, |
396 | struct inode *dir, | 334 | struct inode *dir, |
397 | int mode, | 335 | int mode, |
@@ -410,17 +348,6 @@ int orangefs_update_time(struct inode *, struct timespec *, int); | |||
410 | /* | 348 | /* |
411 | * defined in xattr.c | 349 | * defined in xattr.c |
412 | */ | 350 | */ |
413 | int orangefs_setxattr(struct dentry *dentry, | ||
414 | const char *name, | ||
415 | const void *value, | ||
416 | size_t size, | ||
417 | int flags); | ||
418 | |||
419 | ssize_t orangefs_getxattr(struct dentry *dentry, | ||
420 | const char *name, | ||
421 | void *buffer, | ||
422 | size_t size); | ||
423 | |||
424 | ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size); | 351 | ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size); |
425 | 352 | ||
426 | /* | 353 | /* |
@@ -467,8 +394,6 @@ int orangefs_inode_check_changed(struct inode *inode); | |||
467 | 394 | ||
468 | int orangefs_inode_setattr(struct inode *inode, struct iattr *iattr); | 395 | int orangefs_inode_setattr(struct inode *inode, struct iattr *iattr); |
469 | 396 | ||
470 | int orangefs_unmount_sb(struct super_block *sb); | ||
471 | |||
472 | bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op); | 397 | bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op); |
473 | 398 | ||
474 | int orangefs_normalize_to_errno(__s32 error_code); | 399 | int orangefs_normalize_to_errno(__s32 error_code); |
@@ -493,8 +418,6 @@ extern const struct inode_operations orangefs_dir_inode_operations; | |||
493 | extern const struct file_operations orangefs_dir_operations; | 418 | extern const struct file_operations orangefs_dir_operations; |
494 | extern const struct dentry_operations orangefs_dentry_operations; | 419 | extern const struct dentry_operations orangefs_dentry_operations; |
495 | 420 | ||
496 | extern wait_queue_head_t orangefs_bufmap_init_waitq; | ||
497 | |||
498 | /* | 421 | /* |
499 | * misc convenience macros | 422 | * misc convenience macros |
500 | */ | 423 | */ |
diff --git a/fs/orangefs/protocol.h b/fs/orangefs/protocol.h index dc6e3e6269c3..61ee8d64c842 100644 --- a/fs/orangefs/protocol.h +++ b/fs/orangefs/protocol.h | |||
@@ -5,11 +5,6 @@ | |||
5 | #include <linux/slab.h> | 5 | #include <linux/slab.h> |
6 | #include <linux/ioctl.h> | 6 | #include <linux/ioctl.h> |
7 | 7 | ||
8 | /* pvfs2-config.h ***********************************************************/ | ||
9 | #define ORANGEFS_VERSION_MAJOR 2 | ||
10 | #define ORANGEFS_VERSION_MINOR 9 | ||
11 | #define ORANGEFS_VERSION_SUB 0 | ||
12 | |||
13 | /* khandle stuff ***********************************************************/ | 8 | /* khandle stuff ***********************************************************/ |
14 | 9 | ||
15 | /* | 10 | /* |
@@ -70,16 +65,6 @@ static inline void ORANGEFS_khandle_from(struct orangefs_khandle *kh, | |||
70 | } | 65 | } |
71 | 66 | ||
72 | /* pvfs2-types.h ************************************************************/ | 67 | /* pvfs2-types.h ************************************************************/ |
73 | typedef __u32 ORANGEFS_uid; | ||
74 | typedef __u32 ORANGEFS_gid; | ||
75 | typedef __s32 ORANGEFS_fs_id; | ||
76 | typedef __u32 ORANGEFS_permissions; | ||
77 | typedef __u64 ORANGEFS_time; | ||
78 | typedef __s64 ORANGEFS_size; | ||
79 | typedef __u64 ORANGEFS_flags; | ||
80 | typedef __u64 ORANGEFS_ds_position; | ||
81 | typedef __s32 ORANGEFS_error; | ||
82 | typedef __s64 ORANGEFS_offset; | ||
83 | 68 | ||
84 | #define ORANGEFS_SUPER_MAGIC 0x20030528 | 69 | #define ORANGEFS_SUPER_MAGIC 0x20030528 |
85 | 70 | ||
@@ -145,7 +130,6 @@ typedef __s64 ORANGEFS_offset; | |||
145 | #define ORANGEFS_APPEND_FL FS_APPEND_FL | 130 | #define ORANGEFS_APPEND_FL FS_APPEND_FL |
146 | #define ORANGEFS_NOATIME_FL FS_NOATIME_FL | 131 | #define ORANGEFS_NOATIME_FL FS_NOATIME_FL |
147 | #define ORANGEFS_MIRROR_FL 0x01000000ULL | 132 | #define ORANGEFS_MIRROR_FL 0x01000000ULL |
148 | #define ORANGEFS_O_EXECUTE (1 << 0) | ||
149 | #define ORANGEFS_FS_ID_NULL ((__s32)0) | 133 | #define ORANGEFS_FS_ID_NULL ((__s32)0) |
150 | #define ORANGEFS_ATTR_SYS_UID (1 << 0) | 134 | #define ORANGEFS_ATTR_SYS_UID (1 << 0) |
151 | #define ORANGEFS_ATTR_SYS_GID (1 << 1) | 135 | #define ORANGEFS_ATTR_SYS_GID (1 << 1) |
@@ -229,35 +213,6 @@ enum orangefs_ds_type { | |||
229 | ORANGEFS_TYPE_INTERNAL = (1 << 5) /* for the server's private use */ | 213 | ORANGEFS_TYPE_INTERNAL = (1 << 5) /* for the server's private use */ |
230 | }; | 214 | }; |
231 | 215 | ||
232 | /* | ||
233 | * ORANGEFS_certificate simply stores a buffer with the buffer size. | ||
234 | * The buffer can be converted to an OpenSSL X509 struct for use. | ||
235 | */ | ||
236 | struct ORANGEFS_certificate { | ||
237 | __u32 buf_size; | ||
238 | unsigned char *buf; | ||
239 | }; | ||
240 | |||
241 | /* | ||
242 | * A credential identifies a user and is signed by the client/user | ||
243 | * private key. | ||
244 | */ | ||
245 | struct ORANGEFS_credential { | ||
246 | __u32 userid; /* user id */ | ||
247 | __u32 num_groups; /* length of group_array */ | ||
248 | __u32 *group_array; /* groups for which the user is a member */ | ||
249 | char *issuer; /* alias of the issuing server */ | ||
250 | __u64 timeout; /* seconds after epoch to time out */ | ||
251 | __u32 sig_size; /* length of the signature in bytes */ | ||
252 | unsigned char *signature; /* digital signature */ | ||
253 | struct ORANGEFS_certificate certificate; /* user certificate buffer */ | ||
254 | }; | ||
255 | #define extra_size_ORANGEFS_credential (ORANGEFS_REQ_LIMIT_GROUPS * \ | ||
256 | sizeof(__u32) + \ | ||
257 | ORANGEFS_REQ_LIMIT_ISSUER + \ | ||
258 | ORANGEFS_REQ_LIMIT_SIGNATURE + \ | ||
259 | extra_size_ORANGEFS_certificate) | ||
260 | |||
261 | /* This structure is used by the VFS-client interaction alone */ | 216 | /* This structure is used by the VFS-client interaction alone */ |
262 | struct ORANGEFS_keyval_pair { | 217 | struct ORANGEFS_keyval_pair { |
263 | char key[ORANGEFS_MAX_XATTR_NAMELEN]; | 218 | char key[ORANGEFS_MAX_XATTR_NAMELEN]; |