From: akpm@linux-foundation.org Subject: [patch for 2.6.29? 2/3] fs: make struct dentry->d_op const Date: Wed, 04 Mar 2009 12:12:31 -0800 Message-ID: <200903042012.n24KCVdL030025@imap1.linux-foundation.org> Cc: linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, jengelh@medozas.de To: viro@zeniv.linux.org.uk Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:36440 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752693AbZCDUWQ (ORCPT ); Wed, 4 Mar 2009 15:22:16 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Jan Engelhardt This change will allow for tagging many dentry_operations const in the source tree. Signed-off-by: Jan Engelhardt Cc: Al Viro Signed-off-by: Andrew Morton --- include/linux/dcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/dcache.h~fs-make-struct-dentry-d_op-const include/linux/dcache.h --- a/include/linux/dcache.h~fs-make-struct-dentry-d_op-const +++ a/include/linux/dcache.h @@ -112,7 +112,7 @@ struct dentry { struct list_head d_subdirs; /* our children */ struct list_head d_alias; /* inode alias list */ unsigned long d_time; /* used by d_revalidate */ - struct dentry_operations *d_op; + const struct dentry_operations *d_op; struct super_block *d_sb; /* The root of the dentry tree */ void *d_fsdata; /* fs-specific data */ _