diff options
Diffstat (limited to 'fs/ntfs/mft.c')
| -rw-r--r-- | fs/ntfs/mft.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/ntfs/mft.c b/fs/ntfs/mft.c index 20c841a906f2..3aac5c917afe 100644 --- a/fs/ntfs/mft.c +++ b/fs/ntfs/mft.c @@ -71,7 +71,7 @@ static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni)  	}  	/* Read, map, and pin the page. */  	page = ntfs_map_page(mft_vi->i_mapping, index); -	if (likely(!IS_ERR(page))) { +	if (!IS_ERR(page)) {  		/* Catch multi sector transfer fixup errors. */  		if (likely(ntfs_is_mft_recordp((le32*)(page_address(page) +  				ofs)))) { @@ -154,7 +154,7 @@ MFT_RECORD *map_mft_record(ntfs_inode *ni)  	mutex_lock(&ni->mrec_lock);  	m = map_mft_record_page(ni); -	if (likely(!IS_ERR(m))) +	if (!IS_ERR(m))  		return m;  	mutex_unlock(&ni->mrec_lock); @@ -271,7 +271,7 @@ MFT_RECORD *map_extent_mft_record(ntfs_inode *base_ni, MFT_REF mref,  		m = map_mft_record(ni);  		/* map_mft_record() has incremented this on success. */  		atomic_dec(&ni->count); -		if (likely(!IS_ERR(m))) { +		if (!IS_ERR(m)) {  			/* Verify the sequence number. */  			if (likely(le16_to_cpu(m->sequence_number) == seq_no)) {  				ntfs_debug("Done 1."); @@ -1303,7 +1303,7 @@ static int ntfs_mft_bitmap_extend_allocation_nolock(ntfs_volume *vol)  	read_unlock_irqrestore(&mftbmp_ni->size_lock, flags);  	rl = ntfs_attr_find_vcn_nolock(mftbmp_ni,  			(ll - 1) >> vol->cluster_size_bits, NULL); -	if (unlikely(IS_ERR(rl) || !rl->length || rl->lcn < 0)) { +	if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) {  		up_write(&mftbmp_ni->runlist.lock);  		ntfs_error(vol->sb, "Failed to determine last allocated "  				"cluster of mft bitmap attribute."); @@ -1734,7 +1734,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)  	read_unlock_irqrestore(&mft_ni->size_lock, flags);  	rl = ntfs_attr_find_vcn_nolock(mft_ni,  			(ll - 1) >> vol->cluster_size_bits, NULL); -	if (unlikely(IS_ERR(rl) || !rl->length || rl->lcn < 0)) { +	if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) {  		up_write(&mft_ni->runlist.lock);  		ntfs_error(vol->sb, "Failed to determine last allocated "  				"cluster of mft data attribute."); @@ -1776,7 +1776,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)  	do {  		rl2 = ntfs_cluster_alloc(vol, old_last_vcn, nr, lcn, MFT_ZONE,  				true); -		if (likely(!IS_ERR(rl2))) +		if (!IS_ERR(rl2))  			break;  		if (PTR_ERR(rl2) != -ENOSPC || nr == min_nr) {  			ntfs_error(vol->sb, "Failed to allocate the minimal "  |