Commit dbe84f1e authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Add helpers fs/ntfs/layout.h::MK_MREF() and MK_LE_MREF().

Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent fa18d04a
......@@ -133,6 +133,7 @@ ToDo/Notes:
add a declaration for it to inode.h. Fix some compilation issues
that resulted due to #includes and header file interdependencies.
- Simplify setup of i_mode in fs/ntfs/inode.c::ntfs_read_locked_inode().
- Add helpers fs/ntfs/layout.h::MK_MREF() and MK_LE_MREF().
2.1.20 - Fix two stupid bugs introduced in 2.1.18 release.
......
......@@ -316,6 +316,10 @@ typedef enum {
typedef u64 MFT_REF;
typedef le64 leMFT_REF;
#define MK_MREF(m, s) ((MFT_REF)(((MFT_REF)(s) << 48) | \
((MFT_REF)(m) & MFT_REF_MASK_CPU)))
#define MK_LE_MREF(m, s) cpu_to_le64(MK_MREF(m, s))
#define MREF(x) ((unsigned long)((x) & MFT_REF_MASK_CPU))
#define MSEQNO(x) ((u16)(((x) >> 48) & 0xffff))
#define MREF_LE(x) ((unsigned long)(le64_to_cpu(x) & MFT_REF_MASK_CPU))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment