X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmds%2Fmds_audit.c;h=08c54b4695000679336e9f111058497a5ffd2df8;hp=29388c184f186ea781f404c4cbdc9c6b73a0011c;hb=4d62ed5bea8c4eb61c9c8415421bdf9e45c26da1;hpb=38dcfadd11f3d2edcf3b115bac1577c6a41c75c5 diff --git a/lustre/mds/mds_audit.c b/lustre/mds/mds_audit.c index 29388c1..08c54b4 100644 --- a/lustre/mds/mds_audit.c +++ b/lustre/mds/mds_audit.c @@ -67,9 +67,12 @@ int mds_audit(struct ptlrpc_request *req, struct dentry *dentry, .namelen = 0, }; int rc = 0; - ENTRY; + /* don't catch request to cross-ref */ + if (dentry->d_flags & DCACHE_CROSS_REF) + RETURN(0); + info.m.nid = nid; info.m.uid = current->uid; info.m.gid = current->gid;