[PATCH 1/2 v5][resend] shmem: provide vm_ops when also providing a mem policy

2012-07-09 Thread Nathan Zimmer
Updating shmem_get_policy to use the vma_policy if provided. This is to allows us to safely provide shmem_vm_ops to the vma when the vm_file has not been setup which is the case on the pseudo vmas. Cc: Christoph Lameter Cc: Nick Piggin Cc: Hugh Dickins Cc: Lee Schermerhorn Cc: KOSAKI Motohiro

[PATCH 1/2 v5][resend] shmem: provide vm_ops when also providing a mem policy

2012-07-09 Thread Nathan Zimmer
Updating shmem_get_policy to use the vma_policy if provided. This is to allows us to safely provide shmem_vm_ops to the vma when the vm_file has not been setup which is the case on the pseudo vmas. Cc: Christoph Lameter c...@linux.com Cc: Nick Piggin npig...@gmail.com Cc: Hugh Dickins