Skip to content

Commit 689ecd0

Browse files
fs/ntfs3: Rename ntfs3_setattr into ntfs_setattr
Aligning names to a single naming convention. Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent 568f114 commit 689ecd0

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

fs/ntfs3/file.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,10 +789,10 @@ static long ntfs_fallocate(struct file *file, int mode, loff_t vbo, loff_t len)
789789
}
790790

791791
/*
792-
* ntfs3_setattr - inode_operations::setattr
792+
* ntfs_setattr - inode_operations::setattr
793793
*/
794-
int ntfs3_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
795-
struct iattr *attr)
794+
int ntfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
795+
struct iattr *attr)
796796
{
797797
struct inode *inode = d_inode(dentry);
798798
struct ntfs_inode *ni = ntfs_i(inode);
@@ -1370,7 +1370,7 @@ static ssize_t ntfs_file_splice_write(struct pipe_inode_info *pipe,
13701370
// clang-format off
13711371
const struct inode_operations ntfs_file_inode_operations = {
13721372
.getattr = ntfs_getattr,
1373-
.setattr = ntfs3_setattr,
1373+
.setattr = ntfs_setattr,
13741374
.listxattr = ntfs_listxattr,
13751375
.get_acl = ntfs_get_acl,
13761376
.set_acl = ntfs_set_acl,

fs/ntfs3/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ static const char *ntfs_get_link(struct dentry *de, struct inode *inode,
21222122
// clang-format off
21232123
const struct inode_operations ntfs_link_inode_operations = {
21242124
.get_link = ntfs_get_link,
2125-
.setattr = ntfs3_setattr,
2125+
.setattr = ntfs_setattr,
21262126
.listxattr = ntfs_listxattr,
21272127
};
21282128

fs/ntfs3/namei.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ const struct inode_operations ntfs_dir_inode_operations = {
503503
.rename = ntfs_rename,
504504
.get_acl = ntfs_get_acl,
505505
.set_acl = ntfs_set_acl,
506-
.setattr = ntfs3_setattr,
506+
.setattr = ntfs_setattr,
507507
.getattr = ntfs_getattr,
508508
.listxattr = ntfs_listxattr,
509509
.fiemap = ntfs_fiemap,
@@ -512,7 +512,7 @@ const struct inode_operations ntfs_dir_inode_operations = {
512512
};
513513

514514
const struct inode_operations ntfs_special_inode_operations = {
515-
.setattr = ntfs3_setattr,
515+
.setattr = ntfs_setattr,
516516
.getattr = ntfs_getattr,
517517
.listxattr = ntfs_listxattr,
518518
.get_acl = ntfs_get_acl,

fs/ntfs3/ntfs_fs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ int ntfs_fileattr_set(struct mnt_idmap *idmap, struct dentry *dentry,
503503
struct fileattr *fa);
504504
int ntfs_getattr(struct mnt_idmap *idmap, const struct path *path,
505505
struct kstat *stat, u32 request_mask, u32 flags);
506-
int ntfs3_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
507-
struct iattr *attr);
506+
int ntfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
507+
struct iattr *attr);
508508
int ntfs_file_open(struct inode *inode, struct file *file);
509509
int ntfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
510510
__u64 start, __u64 len);

fs/ntfs3/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ int ntfs_init_acl(struct mnt_idmap *idmap, struct inode *inode,
705705
#endif
706706

707707
/*
708-
* ntfs_acl_chmod - Helper for ntfs3_setattr().
708+
* ntfs_acl_chmod - Helper for ntfs_setattr().
709709
*/
710710
int ntfs_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry)
711711
{

0 commit comments

Comments
 (0)