From feb17cfc8ee0487a079f55fe5070f4816d36a574 Mon Sep 17 00:00:00 2001 From: braam Date: Sun, 11 Mar 2001 01:20:22 +0000 Subject: [PATCH] release another lock and now it even unmounts. --- lustre/include/linux/obd_support.h | 8 ++++++++ lustre/include/linux/obdfs.h | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lustre/include/linux/obd_support.h b/lustre/include/linux/obd_support.h index 9320f5c..a0b996c 100644 --- a/lustre/include/linux/obd_support.h +++ b/lustre/include/linux/obd_support.h @@ -6,6 +6,14 @@ #define MIN(a,b) (((a)<(b)) ? (a): (b)) #define MAX(a,b) (((a)>(b)) ? (a): (b)) +#define obd_unlock_page(page) do { if (PageLocked(page)) { \ + UnlockPage(page);\ + } else {\ + printk("file %s, line %d: expecting locked page\n",\ + __FILE__, __LINE__); \ + } \ +} while(0) + /* * Debug code */ diff --git a/lustre/include/linux/obdfs.h b/lustre/include/linux/obdfs.h index 6f60217..441ba81 100644 --- a/lustre/include/linux/obdfs.h +++ b/lustre/include/linux/obdfs.h @@ -15,13 +15,6 @@ #include -#define obd_unlock_page(page) do { if (PageLocked(page)) { \ - UnlockPage(page);\ - } else {\ - printk("file %s, line %d: expecting locked page\n",\ - __FILE__, __LINE__); \ - } \ -} while(0) struct obdfs_pgrq { struct list_head rq_plist; /* linked list of req's */ -- 1.8.3.1