aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2018-04-03 12:27:14 -0400
committerMike Marshall <hubcap@omnibond.com>2018-04-03 21:55:28 -0400
commit209469d978ae91e460b37b32f2c2834d93e1ff13 (patch)
treed47b72d742b7efe4dba0d197b0987e7321ecfc2f
parentbdd6f083586ff17eb3959cca88212fdb60ca53d1 (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.h6
-rw-r--r--fs/orangefs/orangefs-kernel.h77
-rw-r--r--fs/orangefs/protocol.h45
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);
49char *ORANGEFS_debug_mask_to_eventlog(__u64 mask);
50char *ORANGEFS_kmod_mask_to_eventlog(__u64 mask);
51
52/* a private internal type */ 46/* a private internal type */
53struct __keyword_mask_s { 47struct __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) + \
75sizeof(__u64) + sizeof(struct orangefs_upcall_s)) 71sizeof(__u64) + sizeof(struct orangefs_upcall_s))
@@ -113,15 +109,6 @@ extern struct posix_acl *orangefs_get_acl(struct inode *inode, int type);
113extern int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type); 109extern 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 */
119struct 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 */
127struct orangefs_kernel_op_s { 114struct 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 */
233struct 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
260struct orangefs_stats { 214struct 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
308static 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
318static 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
323static inline int is_root_handle(struct inode *inode) 262static 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);
395struct inode *orangefs_new_inode(struct super_block *sb, 333struct 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 */
413int orangefs_setxattr(struct dentry *dentry,
414 const char *name,
415 const void *value,
416 size_t size,
417 int flags);
418
419ssize_t orangefs_getxattr(struct dentry *dentry,
420 const char *name,
421 void *buffer,
422 size_t size);
423
424ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size); 351ssize_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
468int orangefs_inode_setattr(struct inode *inode, struct iattr *iattr); 395int orangefs_inode_setattr(struct inode *inode, struct iattr *iattr);
469 396
470int orangefs_unmount_sb(struct super_block *sb);
471
472bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op); 397bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op);
473 398
474int orangefs_normalize_to_errno(__s32 error_code); 399int orangefs_normalize_to_errno(__s32 error_code);
@@ -493,8 +418,6 @@ extern const struct inode_operations orangefs_dir_inode_operations;
493extern const struct file_operations orangefs_dir_operations; 418extern const struct file_operations orangefs_dir_operations;
494extern const struct dentry_operations orangefs_dentry_operations; 419extern const struct dentry_operations orangefs_dentry_operations;
495 420
496extern 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 ************************************************************/
73typedef __u32 ORANGEFS_uid;
74typedef __u32 ORANGEFS_gid;
75typedef __s32 ORANGEFS_fs_id;
76typedef __u32 ORANGEFS_permissions;
77typedef __u64 ORANGEFS_time;
78typedef __s64 ORANGEFS_size;
79typedef __u64 ORANGEFS_flags;
80typedef __u64 ORANGEFS_ds_position;
81typedef __s32 ORANGEFS_error;
82typedef __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 */
236struct 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 */
245struct 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 */
262struct ORANGEFS_keyval_pair { 217struct ORANGEFS_keyval_pair {
263 char key[ORANGEFS_MAX_XATTR_NAMELEN]; 218 char key[ORANGEFS_MAX_XATTR_NAMELEN];