linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] hugetlb: Remove is_file_hugepages() macro
@ 2007-01-31 20:16 Adam Litke
  2007-01-31 20:16 ` [PATCH 1/6] Define the shmem_inode_info flags directly Adam Litke
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Adam Litke @ 2007-01-31 20:16 UTC (permalink / raw)
  To: linux-mm; +Cc: agl, wli, kenchen, hugh, david

The kernel code is currently peppered with special casing for hugetlbfs
mappings.  In many places we check a struct file's f_op member to see if it
points to the hugetlbfs file_operations in which case we'll employ some sort of
workaround.  The need to check file_operations in this manner suggests that we
are either missing f_op operations, or have deficient abstraction elsewhere.

I am motivated to clean this up for two reasons:  1) The community has asked
for huge pages to be kept "on the side" of the main VM.  I believe these
patches advance that goal.  2) Proper abstraction of hugetlbfs allows the
underlying implementation to be changed without disturbing the main VM.

Removing the is_file_hugepages() macro involved finding all the call sites,
determining the actual incompatibility that huge page mappings introduce, and
applying a relatively trivial fix for the problem.  The following patches
perform this surgery.

When converting these, I have tried to use as general of a solution as
possible.  Review of some of the design decisions would be appreciated --
specifically the use of backing_dev_info for the note about special accounting,
and hugetlbfs sharing the inode_info struct with shmem.

Thanks to Andy Whitcroft and others for review of the preliminary patches.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-31 20:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 20:16 [PATCH 0/6] hugetlb: Remove is_file_hugepages() macro Adam Litke
2007-01-31 20:16 ` [PATCH 1/6] Define the shmem_inode_info flags directly Adam Litke
2007-01-31 20:16 ` [PATCH 2/6] hugetlb: share shmem_inode_info Adam Litke
2007-01-31 20:16 ` [PATCH 3/6] Use inode_info to annotate hugetlbfs shm segments Adam Litke
2007-01-31 20:17 ` [PATCH 4/6] hugetlb: hugetlbfs handles overcommit accounting privately Adam Litke
2007-01-31 20:17 ` [PATCH 5/6] Abstract is_hugepage_only_range Adam Litke
2007-01-31 20:17 ` [PATCH 6/6] hugetlb: Remove is_file_hugepages() Adam Litke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).