diff options
author | Jeff Mahoney <jeffm@suse.com> | 2014-04-23 10:00:42 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2014-05-06 17:18:16 -0400 |
commit | a228bf8f0a3e5f1406edbd61f7400e87e23af5f7 (patch) | |
tree | 44b6806245ad0c93f607c4df73ab7c26a404347d /fs/reiserfs/inode.c | |
parent | cf776a7a4dafa330dd371a6a301ddf9e38747d93 (diff) |
reiserfs: cleanup, remove unnecessary parens
The reiserfs code is littered with extra parens in places where the authors
may not have been certain about precedence of & vs ->. This patch cleans them
out.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r-- | fs/reiserfs/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index c811289a1820..874c8b329cfe 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -1027,7 +1027,7 @@ research: | |||
1027 | */ | 1027 | */ |
1028 | make_cpu_key(&tmp_key, inode, | 1028 | make_cpu_key(&tmp_key, inode, |
1029 | le_key_k_offset(version, | 1029 | le_key_k_offset(version, |
1030 | &(ih->ih_key)) + | 1030 | &ih->ih_key) + |
1031 | op_bytes_number(ih, | 1031 | op_bytes_number(ih, |
1032 | inode->i_sb->s_blocksize), | 1032 | inode->i_sb->s_blocksize), |
1033 | TYPE_INDIRECT, 3); | 1033 | TYPE_INDIRECT, 3); |
@@ -1243,9 +1243,9 @@ static void init_inode(struct inode *inode, struct treepath *path) | |||
1243 | bh = PATH_PLAST_BUFFER(path); | 1243 | bh = PATH_PLAST_BUFFER(path); |
1244 | ih = tp_item_head(path); | 1244 | ih = tp_item_head(path); |
1245 | 1245 | ||
1246 | copy_key(INODE_PKEY(inode), &(ih->ih_key)); | 1246 | copy_key(INODE_PKEY(inode), &ih->ih_key); |
1247 | 1247 | ||
1248 | INIT_LIST_HEAD(&(REISERFS_I(inode)->i_prealloc_list)); | 1248 | INIT_LIST_HEAD(&REISERFS_I(inode)->i_prealloc_list); |
1249 | REISERFS_I(inode)->i_flags = 0; | 1249 | REISERFS_I(inode)->i_flags = 0; |
1250 | REISERFS_I(inode)->i_prealloc_block = 0; | 1250 | REISERFS_I(inode)->i_prealloc_block = 0; |
1251 | REISERFS_I(inode)->i_prealloc_count = 0; | 1251 | REISERFS_I(inode)->i_prealloc_count = 0; |
@@ -1967,7 +1967,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, | |||
1967 | else | 1967 | else |
1968 | make_le_item_head(&ih, NULL, KEY_FORMAT_3_6, SD_OFFSET, | 1968 | make_le_item_head(&ih, NULL, KEY_FORMAT_3_6, SD_OFFSET, |
1969 | TYPE_STAT_DATA, SD_SIZE, MAX_US_INT); | 1969 | TYPE_STAT_DATA, SD_SIZE, MAX_US_INT); |
1970 | memcpy(INODE_PKEY(inode), &(ih.ih_key), KEY_SIZE); | 1970 | memcpy(INODE_PKEY(inode), &ih.ih_key, KEY_SIZE); |
1971 | args.dirid = le32_to_cpu(ih.ih_key.k_dir_id); | 1971 | args.dirid = le32_to_cpu(ih.ih_key.k_dir_id); |
1972 | 1972 | ||
1973 | depth = reiserfs_write_unlock_nested(inode->i_sb); | 1973 | depth = reiserfs_write_unlock_nested(inode->i_sb); |
@@ -2011,7 +2011,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, | |||
2011 | REISERFS_I(inode)->i_first_direct_byte = S_ISLNK(mode) ? 1 : | 2011 | REISERFS_I(inode)->i_first_direct_byte = S_ISLNK(mode) ? 1 : |
2012 | U32_MAX /*NO_BYTES_IN_DIRECT_ITEM */ ; | 2012 | U32_MAX /*NO_BYTES_IN_DIRECT_ITEM */ ; |
2013 | 2013 | ||
2014 | INIT_LIST_HEAD(&(REISERFS_I(inode)->i_prealloc_list)); | 2014 | INIT_LIST_HEAD(&REISERFS_I(inode)->i_prealloc_list); |
2015 | REISERFS_I(inode)->i_flags = 0; | 2015 | REISERFS_I(inode)->i_flags = 0; |
2016 | REISERFS_I(inode)->i_prealloc_block = 0; | 2016 | REISERFS_I(inode)->i_prealloc_block = 0; |
2017 | REISERFS_I(inode)->i_prealloc_count = 0; | 2017 | REISERFS_I(inode)->i_prealloc_count = 0; |