NTFS: Add AT_EA in addition to AT_DATA to whitelist for being allowed to be
non-resident in fs/ntfs/attrib.c::ntfs_attr_can_be_non_resident().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c
index 7a16f7c..fa464fc 100644
--- a/fs/ntfs/attrib.c
+++ b/fs/ntfs/attrib.c
@@ -1049,10 +1049,11 @@
ATTR_DEF *ad;
/*
- * $DATA is always allowed to be non-resident even if $AttrDef does not
- * specify this in the flags of the $DATA attribute definition record.
+ * $DATA and $EA are always allowed to be non-resident even if $AttrDef
+ * does not specify this in the flags of the $DATA attribute definition
+ * record.
*/
- if (type == AT_DATA)
+ if (type == AT_DATA || type == AT_EA)
return 0;
/* Find the attribute definition record in $AttrDef. */
ad = ntfs_attr_find_in_attrdef(vol, type);