Non-GPL export of invalidate_mmap_range

Paul E. McKenney
2004-02-16T19:09:27Z

Hello, Andrew,

The attached patch to make invalidate_mmap_range() non-GPL exported
seems to have been lost somewhere between 2.6.1-mm4 and 2.6.1-mm5.
It still applies cleanly. Could you please take it up again?

Thanx, Paul

------------------------------------------------------------------------

It was EXPORT_SYMBOL_GPL(), however IBM's GPFS is not GPL.

- the GPFS team contributed to the testing and development of
invaldiate_mmap_range().

- GPFS was developed under AIX and was ported to Linux, and hence meets
Linus's "some binary modules are OK" exemption.

- The export makes sense: clustering filesystems need it for shootdowns to
ensure cache coherency.

25-akpm/mm/memory.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/memory.c~invalidate_mmap_range-non-gpl-export mm/memory.c
--- 25/mm/memory.c~invalidate_mmap_range-non-gpl-export Mon Nov 24 11:33:19 2003
+++ 25-akpm/mm/memory.c Mon Nov 24 11:33:34 2003
@@ -1164,7 +1164,7 @@ void invalidate_mmap_range(struct addres
invalidate_mmap_range_list(&mapping->i_mmap_shared, hba, hlen);
up(&mapping->i_shared_sem);
}
-EXPORT_SYMBOL_GPL(invalidate_mmap_range);
+EXPORT_SYMBOL(invalidate_mmap_range);

/*
* Handle all mappings that got truncated by a "truncate()"

_