Replace all sle64 usage of the '==' operation with "sle64_eq(...)".

edge.strict_endians
Erik Larsson 2016-01-28 08:28:33 +01:00
parent e1bd02ed74
commit 7b85755080
3 changed files with 4 additions and 2 deletions

View File

@ -304,4 +304,6 @@
#define sle16_eq(a, b) ((a) == (b))
#define sle64_eq(a, b) ((a) == (b))
#endif /* defined _NTFS_ENDIANS_H */

View File

@ -155,7 +155,7 @@ int ntfs_attrlist_entry_add(ntfs_inode *ni, ATTR_RECORD *attr)
le16_to_cpu(attr->value_offset)), (attr->non_resident) ?
0 : le32_to_cpu(attr->value_length), ctx)) {
/* Found some extent, check it to be before new extent. */
if (ctx->al_entry->lowest_vcn == attr->lowest_vcn) {
if (sle64_eq(ctx->al_entry->lowest_vcn, attr->lowest_vcn)) {
err = EEXIST;
ntfs_log_trace("Such attribute already present in the "
"attribute list.\n");

View File

@ -871,7 +871,7 @@ static BOOL attrlist_selfloc_condition(struct MFT_SELF_LOCATED *selfloc)
&& al->length
&& le32_eq(al->type, AT_DATA)
&& !al->name_length
&& ((leVCN)al->lowest_vcn == levcn)
&& sle64_eq(al->lowest_vcn, levcn)
&& (MREF_LE(al->mft_reference) >= SELFLOC_LIMIT)) {
selfloc->mft_ref1
= le64_to_cpu(al->mft_reference);