Replace all sle64 usage of the '==' operation with "sle64_eq(...)".
parent
e1bd02ed74
commit
7b85755080
|
@ -304,4 +304,6 @@
|
||||||
|
|
||||||
#define sle16_eq(a, b) ((a) == (b))
|
#define sle16_eq(a, b) ((a) == (b))
|
||||||
|
|
||||||
|
#define sle64_eq(a, b) ((a) == (b))
|
||||||
|
|
||||||
#endif /* defined _NTFS_ENDIANS_H */
|
#endif /* defined _NTFS_ENDIANS_H */
|
||||||
|
|
|
@ -155,7 +155,7 @@ int ntfs_attrlist_entry_add(ntfs_inode *ni, ATTR_RECORD *attr)
|
||||||
le16_to_cpu(attr->value_offset)), (attr->non_resident) ?
|
le16_to_cpu(attr->value_offset)), (attr->non_resident) ?
|
||||||
0 : le32_to_cpu(attr->value_length), ctx)) {
|
0 : le32_to_cpu(attr->value_length), ctx)) {
|
||||||
/* Found some extent, check it to be before new extent. */
|
/* 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;
|
err = EEXIST;
|
||||||
ntfs_log_trace("Such attribute already present in the "
|
ntfs_log_trace("Such attribute already present in the "
|
||||||
"attribute list.\n");
|
"attribute list.\n");
|
||||||
|
|
|
@ -871,7 +871,7 @@ static BOOL attrlist_selfloc_condition(struct MFT_SELF_LOCATED *selfloc)
|
||||||
&& al->length
|
&& al->length
|
||||||
&& le32_eq(al->type, AT_DATA)
|
&& le32_eq(al->type, AT_DATA)
|
||||||
&& !al->name_length
|
&& !al->name_length
|
||||||
&& ((leVCN)al->lowest_vcn == levcn)
|
&& sle64_eq(al->lowest_vcn, levcn)
|
||||||
&& (MREF_LE(al->mft_reference) >= SELFLOC_LIMIT)) {
|
&& (MREF_LE(al->mft_reference) >= SELFLOC_LIMIT)) {
|
||||||
selfloc->mft_ref1
|
selfloc->mft_ref1
|
||||||
= le64_to_cpu(al->mft_reference);
|
= le64_to_cpu(al->mft_reference);
|
||||||
|
|
Loading…
Reference in New Issue