constify dentry_operations: autofs, autofs4

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2009-02-20 05:56:19 +00:00
Родитель a488257ce5
Коммит 08f11513fa
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -192,7 +192,7 @@ static int autofs_revalidate(struct dentry * dentry, struct nameidata *nd)
return 1;
}
static struct dentry_operations autofs_dentry_operations = {
static const struct dentry_operations autofs_dentry_operations = {
.d_revalidate = autofs_revalidate,
};

Просмотреть файл

@ -310,7 +310,7 @@ static struct autofs_info *autofs4_mkroot(struct autofs_sb_info *sbi)
return ino;
}
static struct dentry_operations autofs4_sb_dentry_operations = {
static const struct dentry_operations autofs4_sb_dentry_operations = {
.d_release = autofs4_dentry_release,
};

Просмотреть файл

@ -349,13 +349,13 @@ void autofs4_dentry_release(struct dentry *de)
}
/* For dentries of directories in the root dir */
static struct dentry_operations autofs4_root_dentry_operations = {
static const struct dentry_operations autofs4_root_dentry_operations = {
.d_revalidate = autofs4_revalidate,
.d_release = autofs4_dentry_release,
};
/* For other dentries */
static struct dentry_operations autofs4_dentry_operations = {
static const struct dentry_operations autofs4_dentry_operations = {
.d_revalidate = autofs4_revalidate,
.d_release = autofs4_dentry_release,
};