@@ -71,7 +71,7 @@ static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni)
71
71
}
72
72
/* Read, map, and pin the page. */
73
73
page = ntfs_map_page (mft_vi -> i_mapping , index );
74
- if (likely ( !IS_ERR (page ) )) {
74
+ if (!IS_ERR (page )) {
75
75
/* Catch multi sector transfer fixup errors. */
76
76
if (likely (ntfs_is_mft_recordp ((le32 * )(page_address (page ) +
77
77
ofs )))) {
@@ -154,7 +154,7 @@ MFT_RECORD *map_mft_record(ntfs_inode *ni)
154
154
mutex_lock (& ni -> mrec_lock );
155
155
156
156
m = map_mft_record_page (ni );
157
- if (likely ( !IS_ERR (m ) ))
157
+ if (!IS_ERR (m ))
158
158
return m ;
159
159
160
160
mutex_unlock (& ni -> mrec_lock );
@@ -271,7 +271,7 @@ MFT_RECORD *map_extent_mft_record(ntfs_inode *base_ni, MFT_REF mref,
271
271
m = map_mft_record (ni );
272
272
/* map_mft_record() has incremented this on success. */
273
273
atomic_dec (& ni -> count );
274
- if (likely ( !IS_ERR (m ) )) {
274
+ if (!IS_ERR (m )) {
275
275
/* Verify the sequence number. */
276
276
if (likely (le16_to_cpu (m -> sequence_number ) == seq_no )) {
277
277
ntfs_debug ("Done 1." );
@@ -1303,7 +1303,7 @@ static int ntfs_mft_bitmap_extend_allocation_nolock(ntfs_volume *vol)
1303
1303
read_unlock_irqrestore (& mftbmp_ni -> size_lock , flags );
1304
1304
rl = ntfs_attr_find_vcn_nolock (mftbmp_ni ,
1305
1305
(ll - 1 ) >> vol -> cluster_size_bits , NULL );
1306
- if (unlikely ( IS_ERR (rl ) || !rl -> length || rl -> lcn < 0 )) {
1306
+ if (IS_ERR (rl ) || unlikely ( !rl -> length || rl -> lcn < 0 )) {
1307
1307
up_write (& mftbmp_ni -> runlist .lock );
1308
1308
ntfs_error (vol -> sb , "Failed to determine last allocated "
1309
1309
"cluster of mft bitmap attribute." );
@@ -1734,7 +1734,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
1734
1734
read_unlock_irqrestore (& mft_ni -> size_lock , flags );
1735
1735
rl = ntfs_attr_find_vcn_nolock (mft_ni ,
1736
1736
(ll - 1 ) >> vol -> cluster_size_bits , NULL );
1737
- if (unlikely ( IS_ERR (rl ) || !rl -> length || rl -> lcn < 0 )) {
1737
+ if (IS_ERR (rl ) || unlikely ( !rl -> length || rl -> lcn < 0 )) {
1738
1738
up_write (& mft_ni -> runlist .lock );
1739
1739
ntfs_error (vol -> sb , "Failed to determine last allocated "
1740
1740
"cluster of mft data attribute." );
@@ -1776,7 +1776,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
1776
1776
do {
1777
1777
rl2 = ntfs_cluster_alloc (vol , old_last_vcn , nr , lcn , MFT_ZONE ,
1778
1778
true);
1779
- if (likely ( !IS_ERR (rl2 ) ))
1779
+ if (!IS_ERR (rl2 ))
1780
1780
break ;
1781
1781
if (PTR_ERR (rl2 ) != - ENOSPC || nr == min_nr ) {
1782
1782
ntfs_error (vol -> sb , "Failed to allocate the minimal "
0 commit comments