} else {
hlist_del_init(&dentry->d_hash);
dentry->d_flags |= DCACHE_LUSTRE_INVALID;
- hlist_add_head(&dentry->d_hash,
+ hlist_add_head(&dentry->d_hash,
&sbi->ll_orphan_dentry_list);
}
}
{
struct lookup_intent *it = *itp;
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
- if (it && it->it_magic != INTENT_MAGIC) {
+ if (it && it->it_magic != INTENT_MAGIC) {
CERROR("WARNING: uninitialized intent\n");
LBUG();
}
if (it && (it->it_op == IT_GETATTR || it->it_op == 0))
it->it_op = IT_LOOKUP;
-
#endif
+
if (!it || it->it_op == IT_GETXATTR)
it = *itp = deft;
icbd.icbd_parent = de->d_parent->d_inode;
icbd.icbd_childp = &de;
- /*
- * never execute intents for mount points
- * - attrs will be fixed up in ll_revalidate_inode
- */
+ /* Never execute intents for mount points.
+ * Attributes will be fixed up in ll_inode_revalidate_it */
if (d_mountpoint(de))
RETURN(1);
out:
if (req != NULL && rc == 1)
ptlrpc_req_finished(req);
- if (rc == 0) {
+ if (rc == 0) {
ll_unhash_aliases(de->d_inode);
de->d_flags |= DCACHE_LUSTRE_INVALID;
- } else {
+ } else {
ll_lookup_finish_locks(it, de);
de->d_flags &= ~DCACHE_LUSTRE_INVALID;
}
if (nd && nd->flags & LOOKUP_LAST && !(nd->flags & LOOKUP_LINK_NOTLAST))
rc = ll_revalidate_it(dentry, nd->flags, &nd->intent);
- else
+ else
rc = ll_revalidate_it(dentry, 0, NULL);
RETURN(rc);
mknod_raw: ll_mknod_raw,
mknod: ll_mknod,
rename_raw: ll_rename_raw,
- setattr: ll_setattr,
- setattr_raw: ll_setattr_raw,
+ setattr: ll_setattr,
+ setattr_raw: ll_setattr_raw,
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
create_it: ll_create_it,
- lookup_it: ll_lookup_it,
+ lookup_it: ll_lookup_it,
revalidate_it: ll_inode_revalidate_it,
#else
- lookup: ll_lookup_nd,
- create: ll_create_nd,
+ lookup: ll_lookup_nd,
+ create: ll_create_nd,
getattr_it: ll_getattr,
#endif
};