From: braam Date: Sun, 11 Mar 2001 01:20:22 +0000 (+0000) Subject: release another lock and now it even unmounts. X-Git-Tag: v1_7_100~6090 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=feb17cfc8ee0487a079f55fe5070f4816d36a574;hp=667e9cd3c1193c9e858512ced5ebccd26e0e6ab2;p=fs%2Flustre-release.git release another lock and now it even unmounts. --- 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 */