Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751524AbVKISqv (ORCPT ); Wed, 9 Nov 2005 13:46:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751525AbVKISqv (ORCPT ); Wed, 9 Nov 2005 13:46:51 -0500 Received: from smtp-out.google.com ([216.239.45.12]:48655 "EHLO smtp-out.google.com") by vger.kernel.org with ESMTP id S1751523AbVKISqu (ORCPT ); Wed, 9 Nov 2005 13:46:50 -0500 Date: Wed, 9 Nov 2005 10:46:23 -0800 From: Arun Sharma To: akpm@osdl.org Cc: rohit.seth@intel.com, linux-kernel@vger.kernel.org Subject: [PATCH] Expose SHM_HUGETLB in shmctl(id, IPC_STAT, ...) Message-ID: <20051109184623.GA21636@sharma-home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 21 Allow shmctl to find out if a shmid corresponds to a HUGETLB segment Signed-off-by: Arun Sharma Acked-by: Rohit Seth --- a/ipc/shm.c Tue Nov 8 20:58:38 2005 +++ b/ipc/shm.c Wed Nov 9 10:26:37 2005 @@ -197,7 +197,7 @@ return -ENOMEM; shp->shm_perm.key = key; - shp->shm_flags = (shmflg & S_IRWXUGO); + shp->shm_flags = (shmflg & (S_IRWXUGO | SHM_HUGETLB)); shp->mlock_user = NULL; shp->shm_perm.security = NULL; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/