Commit c0641367 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Add some debugging checks to fs/ntfs/inode.c::ntfs_truncate() and fix

      a typo in fs/ntfs/layout.h.
Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent 801e2ec4
......@@ -2289,6 +2289,8 @@ void ntfs_truncate(struct inode *vi)
MFT_RECORD *m;
int err;
BUG_ON(NInoAttr(ni));
BUG_ON(ni->nr_extents < 0);
m = map_mft_record(ni);
if (IS_ERR(m)) {
ntfs_error(vi->i_sb, "Failed to map mft record for inode 0x%lx "
......
......@@ -260,7 +260,7 @@ typedef enum {
enum {
MFT_RECORD_IN_USE = const_cpu_to_le16(0x0001),
MFT_RECORD_IS_DIRECTORY = const_cpu_to_le16(0x0002),
} __attrobite__ ((__packed__));
} __attribute__ ((__packed__));
typedef le16 MFT_RECORD_FLAGS;
......
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