2011-12-21 11:52:51 +01:00
|
|
|
#ifndef __VFS_SCRATCHPAD_H__
|
|
|
|
#define __VFS_SCRATCHPAD_H__
|
|
|
|
|
|
|
|
/* This is the per-process information. A slot is reserved for each potential
|
|
|
|
* process. Thus NR_PROCS must be the same as in the kernel.
|
|
|
|
*/
|
|
|
|
EXTERN struct scratchpad {
|
|
|
|
union sp_data {
|
|
|
|
int fd_nr;
|
|
|
|
struct filp *filp;
|
|
|
|
} file;
|
|
|
|
struct io_cmd {
|
2014-05-12 18:17:10 +02:00
|
|
|
vir_bytes io_buffer;
|
2011-12-21 11:52:51 +01:00
|
|
|
size_t io_nbytes;
|
|
|
|
} io;
|
|
|
|
} scratchpad[NR_PROCS];
|
|
|
|
|
|
|
|
#endif
|