Message ID | 20250224212051.1756517-15-viro@zeniv.linux.org.uk (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [01/21] procfs: kill ->proc_dops | expand |
On Mon, Feb 24, 2025 at 09:20:45PM +0000, Al Viro wrote: > No users left and anything that wants it would be better off just > setting DCACHE_DONTCACHE in their ->s_d_flags. > > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> > --- Reviewed-by: Christian Brauner <brauner@kernel.org> > fs/libfs.c | 5 ----- > include/linux/fs.h | 1 - > 2 files changed, 6 deletions(-) > > diff --git a/fs/libfs.c b/fs/libfs.c > index b15a2148714e..7eebaee9d082 100644 > --- a/fs/libfs.c > +++ b/fs/libfs.c > @@ -62,11 +62,6 @@ int always_delete_dentry(const struct dentry *dentry) > } > EXPORT_SYMBOL(always_delete_dentry); > > -const struct dentry_operations simple_dentry_operations = { > - .d_delete = always_delete_dentry, > -}; > -EXPORT_SYMBOL(simple_dentry_operations); > - > /* > * Lookup the data. This is trivial - if the dentry didn't already > * exist, we know it is negative. Set d_op to delete negative dentries. > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 473a9de5fc8f..bdaf2f85e1ad 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -3540,7 +3540,6 @@ extern const struct address_space_operations ram_aops; > extern int always_delete_dentry(const struct dentry *); > extern struct inode *alloc_anon_inode(struct super_block *); > extern int simple_nosetlease(struct file *, int, struct file_lease **, void **); > -extern const struct dentry_operations simple_dentry_operations; > > extern struct dentry *simple_lookup(struct inode *, struct dentry *, unsigned int flags); > extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *); > -- > 2.39.5 >
diff --git a/fs/libfs.c b/fs/libfs.c index b15a2148714e..7eebaee9d082 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -62,11 +62,6 @@ int always_delete_dentry(const struct dentry *dentry) } EXPORT_SYMBOL(always_delete_dentry); -const struct dentry_operations simple_dentry_operations = { - .d_delete = always_delete_dentry, -}; -EXPORT_SYMBOL(simple_dentry_operations); - /* * Lookup the data. This is trivial - if the dentry didn't already * exist, we know it is negative. Set d_op to delete negative dentries. diff --git a/include/linux/fs.h b/include/linux/fs.h index 473a9de5fc8f..bdaf2f85e1ad 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3540,7 +3540,6 @@ extern const struct address_space_operations ram_aops; extern int always_delete_dentry(const struct dentry *); extern struct inode *alloc_anon_inode(struct super_block *); extern int simple_nosetlease(struct file *, int, struct file_lease **, void **); -extern const struct dentry_operations simple_dentry_operations; extern struct dentry *simple_lookup(struct inode *, struct dentry *, unsigned int flags); extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *);
No users left and anything that wants it would be better off just setting DCACHE_DONTCACHE in their ->s_d_flags. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> --- fs/libfs.c | 5 ----- include/linux/fs.h | 1 - 2 files changed, 6 deletions(-)