···389 * Only $DATA attributes can be encrypted and only unnamed $DATA390 * attributes can be compressed. Index root can have the flags set but391 * this means to create compressed/encrypted files, not that the392- * attribute is compressed/encrypted.00393 */394- if (ni->type != AT_INDEX_ROOT) {395 /* If attribute is encrypted, deny access, just like NT4. */396 if (NInoEncrypted(ni)) {397 BUG_ON(ni->type != AT_DATA);···1343 * Only $DATA attributes can be encrypted and only unnamed $DATA1344 * attributes can be compressed. Index root can have the flags set but1345 * this means to create compressed/encrypted files, not that the1346- * attribute is compressed/encrypted.001347 */1348- if (ni->type != AT_INDEX_ROOT) {1349 /* If file is encrypted, deny access, just like NT4. */1350 if (NInoEncrypted(ni)) {1351 unlock_page(page);
···389 * Only $DATA attributes can be encrypted and only unnamed $DATA390 * attributes can be compressed. Index root can have the flags set but391 * this means to create compressed/encrypted files, not that the392+ * attribute is compressed/encrypted. Note we need to check for393+ * AT_INDEX_ALLOCATION since this is the type of both directory and394+ * index inodes.395 */396+ if (ni->type != AT_INDEX_ALLOCATION) {397 /* If attribute is encrypted, deny access, just like NT4. */398 if (NInoEncrypted(ni)) {399 BUG_ON(ni->type != AT_DATA);···1341 * Only $DATA attributes can be encrypted and only unnamed $DATA1342 * attributes can be compressed. Index root can have the flags set but1343 * this means to create compressed/encrypted files, not that the1344+ * attribute is compressed/encrypted. Note we need to check for1345+ * AT_INDEX_ALLOCATION since this is the type of both directory and1346+ * index inodes.1347 */1348+ if (ni->type != AT_INDEX_ALLOCATION) {1349 /* If file is encrypted, deny access, just like NT4. */1350 if (NInoEncrypted(ni)) {1351 unlock_page(page);