]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
proc: rename proc_notify_change to proc_setattr
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Mar 2026 06:36:52 +0000 (07:36 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 26 Mar 2026 14:16:54 +0000 (15:16 +0100)
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>
fs/proc/generic.c

index 501889856461b544deb18f81c68fcfb23feece7e..8bb81e58c9d8c8a10831ad5644f8bfb9d752a097 100644 (file)
@@ -115,8 +115,8 @@ static bool pde_subdir_insert(struct proc_dir_entry *dir,
        return true;
 }
 
-static int proc_notify_change(struct mnt_idmap *idmap,
-                             struct dentry *dentry, struct iattr *iattr)
+static int proc_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
+               struct iattr *iattr)
 {
        struct inode *inode = d_inode(dentry);
        struct proc_dir_entry *de = PDE(inode);
@@ -151,7 +151,7 @@ static int proc_getattr(struct mnt_idmap *idmap,
 }
 
 static const struct inode_operations proc_file_inode_operations = {
-       .setattr        = proc_notify_change,
+       .setattr        = proc_setattr,
 };
 
 /*
@@ -364,7 +364,7 @@ const struct dentry_operations proc_net_dentry_ops = {
 static const struct inode_operations proc_dir_inode_operations = {
        .lookup         = proc_lookup,
        .getattr        = proc_getattr,
-       .setattr        = proc_notify_change,
+       .setattr        = proc_setattr,
 };
 
 static void pde_set_flags(struct proc_dir_entry *pde)