static int ll_drop_inode(struct inode *inode)
{
- int drop = generic_drop_inode(inode);
+ struct ll_sb_info *sbi = ll_i2sbi(inode);
+ int drop;
+ if (!sbi->ll_inode_cache_enabled)
+ return 1;
+
+ drop = generic_drop_inode(inode);
if (!drop)
drop = llcrypt_drop_inode(inode);
}
CDEBUG(D_MOUNT, "Mounting client %s\n", lmd->lmd_profile);
+ /* filename encryption is disabled by default */
+ lsi->lsi_flags &= ~LSI_FILENAME_ENC;
rc = lustre_start_mgc(sb);
if (rc) {
lustre_common_put_super(sb);
static int __init lustre_init(void)
{
- struct lnet_process_id lnet_id;
- int i, rc;
+ int rc;
unsigned long lustre_inode_cache_flags;
BUILD_BUG_ON(sizeof(LUSTRE_VOLATILE_HDR) !=
if (rc)
GOTO(out_cache, rc);
- /* Nodes with small feet have little entropy. The NID for this
- * node gives the most entropy in the low bits. */
- for (i = 0;; i++) {
- if (LNetGetId(i, &lnet_id) == -ENOENT)
- break;
-
- add_device_randomness(&lnet_id.nid, sizeof(lnet_id.nid));
- }
-
rc = vvp_global_init();
if (rc != 0)
GOTO(out_tunables, rc);