]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
affs: rename affs_notify_change to affs_setattr
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Mar 2026 06:36:50 +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-4-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/affs/affs.h
fs/affs/dir.c
fs/affs/file.c
fs/affs/inode.c
fs/affs/symlink.c

index ac4e9a02910b72d63c8ec5291347b54518e67f4b..43e20b02b44986d81436319f2ff65bc436cfe81d 100644 (file)
@@ -184,7 +184,7 @@ extern int  affs_rename2(struct mnt_idmap *idmap,
 /* inode.c */
 
 extern struct inode            *affs_new_inode(struct inode *dir);
-extern int                      affs_notify_change(struct mnt_idmap *idmap,
+extern int                      affs_setattr(struct mnt_idmap *idmap,
                                        struct dentry *dentry, struct iattr *attr);
 extern void                     affs_evict_inode(struct inode *inode);
 extern struct inode            *affs_iget(struct super_block *sb,
index fe18caaf4d6557c67f5c0542ad86a6fe4c512aaf..5f3d5d54085e2cf9782fecf2703c536179f23285 100644 (file)
@@ -71,7 +71,7 @@ const struct inode_operations affs_dir_inode_operations = {
        .mkdir          = affs_mkdir,
        .rmdir          = affs_rmdir,
        .rename         = affs_rename2,
-       .setattr        = affs_notify_change,
+       .setattr        = affs_setattr,
 };
 
 static int
index 6c9258359ddb9ba344976dd5a9a435f71f3fabc1..cede4bb1134e31fbec11e36c66cd1e68d931b685 100644 (file)
@@ -1013,5 +1013,5 @@ const struct file_operations affs_file_operations = {
 };
 
 const struct inode_operations affs_file_inode_operations = {
-       .setattr        = affs_notify_change,
+       .setattr        = affs_setattr,
 };
index 0bfc7d151dcd383af31d1fa41723e7391ec9d4c0..f660e76584b39f68f9040ef2f05d6ebabf31648a 100644 (file)
@@ -213,13 +213,12 @@ affs_write_inode(struct inode *inode, struct writeback_control *wbc)
 }
 
 int
-affs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
-                  struct iattr *attr)
+affs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)
 {
        struct inode *inode = d_inode(dentry);
        int error;
 
-       pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid);
+       pr_debug("setattr(%lu,0x%x)\n", inode->i_ino, attr->ia_valid);
 
        error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
        if (error)
index 094aec8d17b88bab9392abdd497ed687cd85584e..af6147e1d975fa4c45daaa477976eb3a3294e6aa 100644 (file)
@@ -71,5 +71,5 @@ const struct address_space_operations affs_symlink_aops = {
 
 const struct inode_operations affs_symlink_inode_operations = {
        .get_link       = page_get_link,
-       .setattr        = affs_notify_change,
+       .setattr        = affs_setattr,
 };