Skip to content

Commit 2ecd46d

Browse files
Christoph Hellwigbrauner
authored andcommitted
proc: rename proc_notify_change to proc_setattr
Make the function name match the method that it implements. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20260325063711.3298685-6-hch@lst.de Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 690005b commit 2ecd46d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fs/proc/generic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ static bool pde_subdir_insert(struct proc_dir_entry *dir,
115115
return true;
116116
}
117117

118-
static int proc_notify_change(struct mnt_idmap *idmap,
119-
struct dentry *dentry, struct iattr *iattr)
118+
static int proc_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
119+
struct iattr *iattr)
120120
{
121121
struct inode *inode = d_inode(dentry);
122122
struct proc_dir_entry *de = PDE(inode);
@@ -151,7 +151,7 @@ static int proc_getattr(struct mnt_idmap *idmap,
151151
}
152152

153153
static const struct inode_operations proc_file_inode_operations = {
154-
.setattr = proc_notify_change,
154+
.setattr = proc_setattr,
155155
};
156156

157157
/*
@@ -364,7 +364,7 @@ const struct dentry_operations proc_net_dentry_ops = {
364364
static const struct inode_operations proc_dir_inode_operations = {
365365
.lookup = proc_lookup,
366366
.getattr = proc_getattr,
367-
.setattr = proc_notify_change,
367+
.setattr = proc_setattr,
368368
};
369369

370370
static void pde_set_flags(struct proc_dir_entry *pde)

0 commit comments

Comments
 (0)