65
65
#define ORANGEFS_REQDEVICE_NAME "pvfs2-req"
66
66
67
67
#define ORANGEFS_DEVREQ_MAGIC 0x20030529
68
- #define ORANGEFS_LINK_MAX 0x000000FF
69
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
70
#define MAX_DEV_REQ_UPSIZE (2 * sizeof(__s32) + \
75
71
sizeof(__u64) + sizeof(struct orangefs_upcall_s))
@@ -112,15 +108,6 @@ extern const struct xattr_handler *orangefs_xattr_handlers[];
112
108
extern struct posix_acl * orangefs_get_acl (struct inode * inode , int type );
113
109
extern int orangefs_set_acl (struct inode * inode , struct posix_acl * acl , int type );
114
110
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
-
124
111
/*
125
112
* orangefs data structures
126
113
*/
@@ -224,39 +211,6 @@ struct orangefs_sb_info_s {
224
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
214
struct orangefs_stats {
261
215
unsigned long cache_hits ;
262
216
unsigned long cache_misses ;
@@ -305,21 +259,6 @@ static inline struct orangefs_khandle *get_khandle_from_ino(struct inode *inode)
305
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
262
static inline int is_root_handle (struct inode * inode )
324
263
{
325
264
gossip_debug (GOSSIP_DCACHE_DEBUG ,
@@ -391,7 +330,6 @@ void fsid_key_table_finalize(void);
391
330
/*
392
331
* defined in inode.c
393
332
*/
394
- __u32 convert_to_orangefs_mask (unsigned long lite_mask );
395
333
struct inode * orangefs_new_inode (struct super_block * sb ,
396
334
struct inode * dir ,
397
335
int mode ,
@@ -410,17 +348,6 @@ int orangefs_update_time(struct inode *, struct timespec *, int);
410
348
/*
411
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
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
395
int orangefs_inode_setattr (struct inode * inode , struct iattr * iattr );
469
396
470
- int orangefs_unmount_sb (struct super_block * sb );
471
-
472
397
bool orangefs_cancel_op_in_progress (struct orangefs_kernel_op_s * op );
473
398
474
399
int orangefs_normalize_to_errno (__s32 error_code );
@@ -493,8 +418,6 @@ extern const struct inode_operations orangefs_dir_inode_operations;
493
418
extern const struct file_operations orangefs_dir_operations ;
494
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
422
* misc convenience macros
500
423
*/
0 commit comments