[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.00.0902011602170.609@fbirervta.pbzchgretzou.qr>
Date: Sun, 1 Feb 2009 16:04:46 +0100 (CET)
From: Jan Engelhardt <jengelh@...ozas.de>
To: Andrew Morton <akpm@...ux-foundation.org>
cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-fsdevel@...r.kernel.org
Subject: [patch] fs: make struct dentry->d_op const
Hi,
maybe this little patchlet can still make it into the running -rc? (no
new compile warnings are thrown on x86_64 allyesconfig) - So that
subsequent const-tagging patches can (successfully) find their way
through the subsystems within the next cycle since they would depend on
this one.
---8<---
parent e6e6bbddc48545d1d1aeccce867639462ce31329
commit ad93838080ede785700c4935e7795f25761e2c12
Author: Jan Engelhardt <jengelh@...ozas.de>
Date: Sun Feb 1 16:01:18 2009 +0100
fs: make struct dentry->d_op const
This change will allow for tagging many dentry_operations const
in the source tree.
Signed-off-by: Jan Engelhardt <jengelh@...ozas.de>
---
include/linux/dcache.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index c66d224..1515636 100644
--- a/include/linux/dcache.h
+++ b/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 */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists