aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fscache-cache.h
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2011-04-21 12:07:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-04-21 13:00:00 -0400
commitd76c8420c3cf8e468901b0bd58306637335c98ea (patch)
tree1dd7c5f1f19fb827968343e08e2cc5ed87358f05 /include/linux/fscache-cache.h
parent83425eee85c6235392e3fe865faf533a48b60ab3 (diff)
raid5: fix build error, sector_t usage
Change <sectors> from unsigned long long to sector_t. This matches its source field. ERROR: "__udivdi3" [drivers/md/raid456.ko] undefined! Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/fscache-cache.h')
0 files changed, 0 insertions, 0 deletions
_SOFT, RT_CLASS_BEST_EFFORT } task_class_t; /* Task RT params for schedulers */ /* RT task parameters for scheduling extensions * These parameters are inherited during clone and therefore must * be explicitly set up before the task set is launched. */ typedef struct rt_param { /* Execution cost */ unsigned long exec_cost; /* Period */ unsigned long period; /* Partition */ unsigned int cpu; /* type of task */ task_class_t cls; } rt_param_t; typedef int pid_t; /* PID of a task */ /* X */ #define set_param(t,p,e) do{\ (t).is_realtime=1;\ (t).exec_cost=(e);\ (t).period=(p);\ }while(0); /* scheduler modes */ #define MODE_NON_RT 0 #define MODE_RT_RUN 1 spolicy sched_getpolicy(void); int set_rt_mode(int mode); int set_rt_task_param(pid_t pid, rt_param_t* param); int get_rt_task_param(pid_t pid, rt_param_t* param); int prepare_rt_task(pid_t pid); enum { LITMUS_RESERVED_RANGE = 1024, } SCHED_SETUP_CMD; int scheduler_setup(int cmd, void* param); /* file descriptor attached shared objects support */ typedef enum { PI_SEM = 0, SRP_SEM = 1, ICS_ID = 2, } obj_type_t; int od_openx(int fd, obj_type_t type, int obj_id, void* config); int od_close(int od); static inline int od_open(int fd, obj_type_t type, int obj_id) { return od_openx(fd, type, obj_id, 0); } /* FMLP support */ int pi_down(int od); int pi_up(int od); int srp_down(int od); int srp_up(int od); int reg_task_srp_sem(int od); /* job control*/ int get_job_no(unsigned int* job_no); int wait_for_job_release(unsigned int job_no); int sleep_next_period(void); /* interruptible critical section support */ #define MAX_ICS_NESTING 16 #define ICS_STACK_EMPTY (-1) struct ics_descriptor { /* ICS id, only read by kernel */ int id; /* rollback program counter, only read by kernel */ void* pc; /* rollback stack pointer, not used by kernel */ void* sp; /* retry flag, not used by kernel */ int* retry; }; /* ICS control block */ struct ics_cb { /* Points to the top-most valid entry. * -1 indicates an empty stack. * Read and written by kernel. */ int top; struct ics_descriptor ics_stack[MAX_ICS_NESTING]; }; int reg_ics_cb(struct ics_cb* ics_cb); int start_wcs(int od); /* library functions */ void init_litmus(void); /* exit is currently unused, but was needed for syscall * tracing and may be needed in the future. Leave it in * for the purpose of source code compatability. */ #define exit_litmus() {} int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period, task_class_t cls); const char* get_scheduler_name(spolicy scheduler); void show_rt_param(rt_param_t* tp); task_class_t str2class(const char* str); void enter_np(void); void exit_np(void); int litmus_task_active(); /* low level operations, not intended for API use */ int fork_rt(void); int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, rt_setup_fn_t setup, void* setup_arg); #endif