Skip to content

Commit d0fdc1c

Browse files
Christoph Hellwigbrauner
authored andcommitted
affs: rename affs_notify_change to affs_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-4-hch@lst.de Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 9c71de5 commit d0fdc1c

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

fs/affs/affs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ extern int affs_rename2(struct mnt_idmap *idmap,
184184
/* inode.c */
185185

186186
extern struct inode *affs_new_inode(struct inode *dir);
187-
extern int affs_notify_change(struct mnt_idmap *idmap,
187+
extern int affs_setattr(struct mnt_idmap *idmap,
188188
struct dentry *dentry, struct iattr *attr);
189189
extern void affs_evict_inode(struct inode *inode);
190190
extern struct inode *affs_iget(struct super_block *sb,

fs/affs/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const struct inode_operations affs_dir_inode_operations = {
7171
.mkdir = affs_mkdir,
7272
.rmdir = affs_rmdir,
7373
.rename = affs_rename2,
74-
.setattr = affs_notify_change,
74+
.setattr = affs_setattr,
7575
};
7676

7777
static int

fs/affs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,5 +1013,5 @@ const struct file_operations affs_file_operations = {
10131013
};
10141014

10151015
const struct inode_operations affs_file_inode_operations = {
1016-
.setattr = affs_notify_change,
1016+
.setattr = affs_setattr,
10171017
};

fs/affs/inode.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,12 @@ affs_write_inode(struct inode *inode, struct writeback_control *wbc)
213213
}
214214

215215
int
216-
affs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
217-
struct iattr *attr)
216+
affs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)
218217
{
219218
struct inode *inode = d_inode(dentry);
220219
int error;
221220

222-
pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid);
221+
pr_debug("setattr(%lu,0x%x)\n", inode->i_ino, attr->ia_valid);
223222

224223
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
225224
if (error)

fs/affs/symlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ const struct address_space_operations affs_symlink_aops = {
7171

7272
const struct inode_operations affs_symlink_inode_operations = {
7373
.get_link = page_get_link,
74-
.setattr = affs_notify_change,
74+
.setattr = affs_setattr,
7575
};

0 commit comments

Comments
 (0)