lkml.org 
[lkml]   [2009]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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@medozas.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@medozas.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 */



\
 
 \ /
  Last update: 2009-02-01 16:07    [from the cache]
©2003-2011 Jasper Spaans