Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f786aa90 authored by Al Viro's avatar Al Viro
Browse files

constify dentry_operations: NFS



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e56980d4
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -899,7 +899,7 @@ static void nfs_dentry_iput(struct dentry *dentry, struct inode *inode)
	iput(inode);
	iput(inode);
}
}


struct dentry_operations nfs_dentry_operations = {
const struct dentry_operations nfs_dentry_operations = {
	.d_revalidate	= nfs_lookup_revalidate,
	.d_revalidate	= nfs_lookup_revalidate,
	.d_delete	= nfs_dentry_delete,
	.d_delete	= nfs_dentry_delete,
	.d_iput		= nfs_dentry_iput,
	.d_iput		= nfs_dentry_iput,
@@ -967,7 +967,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
#ifdef CONFIG_NFS_V4
#ifdef CONFIG_NFS_V4
static int nfs_open_revalidate(struct dentry *, struct nameidata *);
static int nfs_open_revalidate(struct dentry *, struct nameidata *);


struct dentry_operations nfs4_dentry_operations = {
const struct dentry_operations nfs4_dentry_operations = {
	.d_revalidate	= nfs_open_revalidate,
	.d_revalidate	= nfs_open_revalidate,
	.d_delete	= nfs_dentry_delete,
	.d_delete	= nfs_dentry_delete,
	.d_iput		= nfs_dentry_iput,
	.d_iput		= nfs_dentry_iput,
+1 −1
Original line number Original line Diff line number Diff line
@@ -179,7 +179,7 @@ struct nfs4_state_recovery_ops {
	int (*recover_lock)(struct nfs4_state *, struct file_lock *);
	int (*recover_lock)(struct nfs4_state *, struct file_lock *);
};
};


extern struct dentry_operations nfs4_dentry_operations;
extern const struct dentry_operations nfs4_dentry_operations;
extern const struct inode_operations nfs4_dir_inode_operations;
extern const struct inode_operations nfs4_dir_inode_operations;


/* inode.c */
/* inode.c */
+1 −1
Original line number Original line Diff line number Diff line
@@ -415,7 +415,7 @@ extern const struct inode_operations nfs_dir_inode_operations;
extern const struct inode_operations nfs3_dir_inode_operations;
extern const struct inode_operations nfs3_dir_inode_operations;
#endif /* CONFIG_NFS_V3 */
#endif /* CONFIG_NFS_V3 */
extern const struct file_operations nfs_dir_operations;
extern const struct file_operations nfs_dir_operations;
extern struct dentry_operations nfs_dentry_operations;
extern const struct dentry_operations nfs_dentry_operations;


extern void nfs_force_lookup_revalidate(struct inode *dir);
extern void nfs_force_lookup_revalidate(struct inode *dir);
extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_fattr *fattr);
extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_fattr *fattr);
+1 −1
Original line number Original line Diff line number Diff line
@@ -785,7 +785,7 @@ struct nfs_access_entry;
 */
 */
struct nfs_rpc_ops {
struct nfs_rpc_ops {
	u32	version;		/* Protocol version */
	u32	version;		/* Protocol version */
	struct dentry_operations *dentry_ops;
	const struct dentry_operations *dentry_ops;
	const struct inode_operations *dir_inode_ops;
	const struct inode_operations *dir_inode_ops;
	const struct inode_operations *file_inode_ops;
	const struct inode_operations *file_inode_ops;