Commit 14ffd5d0b051b0b937df0cf3580a92f428ff70b1
Committed by
Artem Bityutskiy
1 parent
cdd8ad6e9e
Exists in
master
and in
39 other branches
UBIFS: make xattr operations names consistent
This is just a tiny clean-up patch. The variable name for empty address space operations is "empty_aops". Let's use consistent names for empty inode and file operations: "empty_iops" and "empty_fops", instead of inconsistent "none_inode_operations" and "none_file_operations". Artem: re-write the commit message. Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
fs/ubifs/xattr.c
... | ... | @@ -80,8 +80,8 @@ |
80 | 80 | SECURITY_XATTR, |
81 | 81 | }; |
82 | 82 | |
83 | -static const struct inode_operations none_inode_operations; | |
84 | -static const struct file_operations none_file_operations; | |
83 | +static const struct inode_operations empty_iops; | |
84 | +static const struct file_operations empty_fops; | |
85 | 85 | |
86 | 86 | /** |
87 | 87 | * create_xattr - create an extended attribute. |
... | ... | @@ -131,8 +131,8 @@ |
131 | 131 | |
132 | 132 | /* Re-define all operations to be "nothing" */ |
133 | 133 | inode->i_mapping->a_ops = &empty_aops; |
134 | - inode->i_op = &none_inode_operations; | |
135 | - inode->i_fop = &none_file_operations; | |
134 | + inode->i_op = &empty_iops; | |
135 | + inode->i_fop = &empty_fops; | |
136 | 136 | |
137 | 137 | inode->i_flags |= S_SYNC | S_NOATIME | S_NOCMTIME | S_NOQUOTA; |
138 | 138 | ui = ubifs_inode(inode); |