Skip to content

Commit 9c71de5

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

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

fs/adfs/adfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ struct adfs_discmap {
144144
/* Inode stuff */
145145
struct inode *adfs_iget(struct super_block *sb, struct object_info *obj);
146146
int adfs_write_inode(struct inode *inode, struct writeback_control *wbc);
147-
int adfs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
148-
struct iattr *attr);
147+
int adfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
148+
struct iattr *attr);
149149

150150
/* map.c */
151151
int adfs_map_lookup(struct super_block *sb, u32 frag_id, unsigned int offset);

fs/adfs/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,5 +454,5 @@ adfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
454454
*/
455455
const struct inode_operations adfs_dir_inode_operations = {
456456
.lookup = adfs_lookup,
457-
.setattr = adfs_notify_change,
457+
.setattr = adfs_setattr,
458458
};

fs/adfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ const struct file_operations adfs_file_operations = {
3232
};
3333

3434
const struct inode_operations adfs_file_inode_operations = {
35-
.setattr = adfs_notify_change,
35+
.setattr = adfs_setattr,
3636
};

fs/adfs/inode.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ adfs_iget(struct super_block *sb, struct object_info *obj)
299299
* later.
300300
*/
301301
int
302-
adfs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
303-
struct iattr *attr)
302+
adfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)
304303
{
305304
struct inode *inode = d_inode(dentry);
306305
struct super_block *sb = inode->i_sb;
@@ -355,8 +354,7 @@ adfs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
355354

356355
/*
357356
* write an existing inode back to the directory, and therefore the disk.
358-
* The adfs-specific inode data has already been updated by
359-
* adfs_notify_change()
357+
* The adfs-specific inode data has already been updated by * adfs_setattr().
360358
*/
361359
int adfs_write_inode(struct inode *inode, struct writeback_control *wbc)
362360
{

0 commit comments

Comments
 (0)