···389389 * Only $DATA attributes can be encrypted and only unnamed $DATA390390 * attributes can be compressed. Index root can have the flags set but391391 * this means to create compressed/encrypted files, not that the392392- * attribute is compressed/encrypted.392392+ * attribute is compressed/encrypted. Note we need to check for393393+ * AT_INDEX_ALLOCATION since this is the type of both directory and394394+ * index inodes.393395 */394394- if (ni->type != AT_INDEX_ROOT) {396396+ if (ni->type != AT_INDEX_ALLOCATION) {395397 /* If attribute is encrypted, deny access, just like NT4. */396398 if (NInoEncrypted(ni)) {397399 BUG_ON(ni->type != AT_DATA);···13431341 * Only $DATA attributes can be encrypted and only unnamed $DATA13441342 * attributes can be compressed. Index root can have the flags set but13451343 * this means to create compressed/encrypted files, not that the13461346- * attribute is compressed/encrypted.13441344+ * attribute is compressed/encrypted. Note we need to check for13451345+ * AT_INDEX_ALLOCATION since this is the type of both directory and13461346+ * index inodes.13471347 */13481348- if (ni->type != AT_INDEX_ROOT) {13481348+ if (ni->type != AT_INDEX_ALLOCATION) {13491349 /* If file is encrypted, deny access, just like NT4. */13501350 if (NInoEncrypted(ni)) {13511351 unlock_page(page);