Skip to content

Commit 209469d

Browse files
Martin Brandenburghubcapsc
authored andcommitted
orangefs: remove unused code
Signed-off-by: Martin Brandenburg <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
1 parent bdd6f08 commit 209469d

File tree

3 files changed

+0
-128
lines changed

3 files changed

+0
-128
lines changed

fs/orangefs/orangefs-debug.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343
#define GOSSIP_MAX_NR 16
4444
#define GOSSIP_MAX_DEBUG (((__u64)1 << GOSSIP_MAX_NR) - 1)
4545

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-
5246
/* a private internal type */
5347
struct __keyword_mask_s {
5448
const char *keyword;

fs/orangefs/orangefs-kernel.h

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@
6565
#define ORANGEFS_REQDEVICE_NAME "pvfs2-req"
6666

6767
#define ORANGEFS_DEVREQ_MAGIC 0x20030529
68-
#define ORANGEFS_LINK_MAX 0x000000FF
6968
#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
7369

7470
#define MAX_DEV_REQ_UPSIZE (2 * sizeof(__s32) + \
7571
sizeof(__u64) + sizeof(struct orangefs_upcall_s))
@@ -112,15 +108,6 @@ extern const struct xattr_handler *orangefs_xattr_handlers[];
112108
extern struct posix_acl *orangefs_get_acl(struct inode *inode, int type);
113109
extern int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
114110

115-
/*
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-
124111
/*
125112
* orangefs data structures
126113
*/
@@ -224,39 +211,6 @@ struct orangefs_sb_info_s {
224211
struct list_head list;
225212
};
226213

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-
260214
struct orangefs_stats {
261215
unsigned long cache_hits;
262216
unsigned long cache_misses;
@@ -305,21 +259,6 @@ static inline struct orangefs_khandle *get_khandle_from_ino(struct inode *inode)
305259
return &(ORANGEFS_I(inode)->refn.khandle);
306260
}
307261

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-
323262
static inline int is_root_handle(struct inode *inode)
324263
{
325264
gossip_debug(GOSSIP_DCACHE_DEBUG,
@@ -391,7 +330,6 @@ void fsid_key_table_finalize(void);
391330
/*
392331
* defined in inode.c
393332
*/
394-
__u32 convert_to_orangefs_mask(unsigned long lite_mask);
395333
struct inode *orangefs_new_inode(struct super_block *sb,
396334
struct inode *dir,
397335
int mode,
@@ -410,17 +348,6 @@ int orangefs_update_time(struct inode *, struct timespec *, int);
410348
/*
411349
* defined in xattr.c
412350
*/
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-
424351
ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size);
425352

426353
/*
@@ -467,8 +394,6 @@ int orangefs_inode_check_changed(struct inode *inode);
467394

468395
int orangefs_inode_setattr(struct inode *inode, struct iattr *iattr);
469396

470-
int orangefs_unmount_sb(struct super_block *sb);
471-
472397
bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op);
473398

474399
int orangefs_normalize_to_errno(__s32 error_code);
@@ -493,8 +418,6 @@ extern const struct inode_operations orangefs_dir_inode_operations;
493418
extern const struct file_operations orangefs_dir_operations;
494419
extern const struct dentry_operations orangefs_dentry_operations;
495420

496-
extern wait_queue_head_t orangefs_bufmap_init_waitq;
497-
498421
/*
499422
* misc convenience macros
500423
*/

fs/orangefs/protocol.h

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
#include <linux/slab.h>
66
#include <linux/ioctl.h>
77

8-
/* pvfs2-config.h ***********************************************************/
9-
#define ORANGEFS_VERSION_MAJOR 2
10-
#define ORANGEFS_VERSION_MINOR 9
11-
#define ORANGEFS_VERSION_SUB 0
12-
138
/* khandle stuff ***********************************************************/
149

1510
/*
@@ -70,16 +65,6 @@ static inline void ORANGEFS_khandle_from(struct orangefs_khandle *kh,
7065
}
7166

7267
/* 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;
8368

8469
#define ORANGEFS_SUPER_MAGIC 0x20030528
8570

@@ -145,7 +130,6 @@ typedef __s64 ORANGEFS_offset;
145130
#define ORANGEFS_APPEND_FL FS_APPEND_FL
146131
#define ORANGEFS_NOATIME_FL FS_NOATIME_FL
147132
#define ORANGEFS_MIRROR_FL 0x01000000ULL
148-
#define ORANGEFS_O_EXECUTE (1 << 0)
149133
#define ORANGEFS_FS_ID_NULL ((__s32)0)
150134
#define ORANGEFS_ATTR_SYS_UID (1 << 0)
151135
#define ORANGEFS_ATTR_SYS_GID (1 << 1)
@@ -229,35 +213,6 @@ enum orangefs_ds_type {
229213
ORANGEFS_TYPE_INTERNAL = (1 << 5) /* for the server's private use */
230214
};
231215

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-
261216
/* This structure is used by the VFS-client interaction alone */
262217
struct ORANGEFS_keyval_pair {
263218
char key[ORANGEFS_MAX_XATTR_NAMELEN];

0 commit comments

Comments
 (0)