Skip to content

Commit

Permalink
Merge tag 'for_v5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jack/linux-fs

Pull ext2 and reiserfs cleanups from Jan Kara:
 "Two small cleanups for ext2 and one for reiserfs"

* tag 'for_v5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
  reiserfs: Replace kmalloc with kcalloc in the comment
  ext2: code cleanup by removing ifdef macro surrounding
  ext2: Fix i_op setting for special inode
  • Loading branch information
torvalds committed Jun 4, 2020
2 parents 07c8f3b + 5626de1 commit 051c355
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions fs/ext2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ const struct file_operations ext2_file_operations = {
};

const struct inode_operations ext2_file_inode_operations = {
#ifdef CONFIG_EXT2_FS_XATTR
.listxattr = ext2_listxattr,
#endif
.getattr = ext2_getattr,
.setattr = ext2_setattr,
.get_acl = ext2_get_acl,
Expand Down
6 changes: 0 additions & 6 deletions fs/ext2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ static int ext2_mknod (struct inode * dir, struct dentry *dentry, umode_t mode,
err = PTR_ERR(inode);
if (!IS_ERR(inode)) {
init_special_inode(inode, inode->i_mode, rdev);
#ifdef CONFIG_EXT2_FS_XATTR
inode->i_op = &ext2_special_inode_operations;
#endif
mark_inode_dirty(inode);
err = ext2_add_nondir(dentry, inode);
}
Expand Down Expand Up @@ -413,9 +411,7 @@ const struct inode_operations ext2_dir_inode_operations = {
.rmdir = ext2_rmdir,
.mknod = ext2_mknod,
.rename = ext2_rename,
#ifdef CONFIG_EXT2_FS_XATTR
.listxattr = ext2_listxattr,
#endif
.getattr = ext2_getattr,
.setattr = ext2_setattr,
.get_acl = ext2_get_acl,
Expand All @@ -424,9 +420,7 @@ const struct inode_operations ext2_dir_inode_operations = {
};

const struct inode_operations ext2_special_inode_operations = {
#ifdef CONFIG_EXT2_FS_XATTR
.listxattr = ext2_listxattr,
#endif
.getattr = ext2_getattr,
.setattr = ext2_setattr,
.get_acl = ext2_get_acl,
Expand Down
4 changes: 0 additions & 4 deletions fs/ext2/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,12 @@ const struct inode_operations ext2_symlink_inode_operations = {
.get_link = page_get_link,
.getattr = ext2_getattr,
.setattr = ext2_setattr,
#ifdef CONFIG_EXT2_FS_XATTR
.listxattr = ext2_listxattr,
#endif
};

const struct inode_operations ext2_fast_symlink_inode_operations = {
.get_link = simple_get_link,
.getattr = ext2_getattr,
.setattr = ext2_setattr,
#ifdef CONFIG_EXT2_FS_XATTR
.listxattr = ext2_listxattr,
#endif
};
1 change: 1 addition & 0 deletions fs/ext2/xattr.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ static inline void ext2_xattr_destroy_cache(struct mb_cache *cache)
}

#define ext2_xattr_handlers NULL
#define ext2_listxattr NULL

# endif /* CONFIG_EXT2_FS_XATTR */

Expand Down
2 changes: 1 addition & 1 deletion fs/reiserfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ int reiserfs_get_block(struct inode *inode, sector_t block,
} else {
/* paste hole to the indirect item */
/*
* If kmalloc failed, max_to_insert becomes
* If kcalloc failed, max_to_insert becomes
* zero and it means we only have space for
* one block
*/
Expand Down

0 comments on commit 051c355

Please sign in to comment.