[1/1] Export __lock_page_killable()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Evgeniy Polyakov
Date: Wednesday, May 14, 2008 - 7:11 am

Hi.

There are users, who would like to use lock_page_killable() in modules,
so far there are no users in kernel, but for consistency it can be
exported without them.

Not that it is particulary needed, but copying page_waitqueue() in
modules is frowned upon and unlikely to be exported either.

As a side note, do we want interruptible and time limited locking for
those who knows what is being done?

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>

diff --git a/mm/filemap.c b/mm/filemap.c
index 07e9d92..0a4fea5 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -610,6 +610,7 @@ int __lock_page_killable(struct page *page)
 	return __wait_on_bit_lock(page_waitqueue(page), &wait,
 					sync_page_killable, TASK_KILLABLE);
 }
+EXPORT_SYMBOL(__lock_page_killable);
 
 /**
  * __lock_page_nosync - get a lock on the page, without calling sync_page()


-- 
	Evgeniy Polyakov
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[1/1] Export __lock_page_killable(), Evgeniy Polyakov, (Wed May 14, 7:11 am)
Re: [1/1] Export __lock_page_killable(), Alan Cox, (Wed May 14, 7:13 am)
Re: [1/1] Export __lock_page_killable(), Evgeniy Polyakov, (Wed May 14, 7:32 am)
Re: [1/1] Export __lock_page_killable(), Andrew Morton, (Wed May 14, 11:04 am)