provide io_schedule for 2.4
PATCH 1/1 provide io_schedule for 2.4
(vs format-changes branch)
inc/ocfs_compat.h +2 -0
@@ -52,6 +70,8 @@#define unlock_page (p) UnlockPage(p)#define Page_Uptodate (p) PageUptodate(p) +#define io_schedule schedule +#else /* LINUX_VERSION_CODE < 2.6 */ #define OCFS_GENERIC_SB_MEMBER (sb) ((sb)->s_fs_info)
hash.c +0 -4
@@ -536,11 +536,7 @@#endif if (!do_timeout) {set_task_state (tsk,TASK_UNINTERRUPTIBLE ); -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 )io_schedule (); -#else -schedule (); -#endif }else { do_timeout =0 ;set_task_state (tsk,TASK_INTERRUPTIBLE );