}
struct dentry *__filter_oa2dentry(struct obd_device *obd,
- struct obdo *oa, const char *what)
+ struct obdo *oa, const char *what, int quiet)
{
struct dentry *dchild = NULL;
obd_gr group = 0;
RETURN(dchild);
}
- if (dchild->d_inode == NULL && strcmp(what, "filter_setattr")) {
- CERROR("%s: %s on non-existent object: "LPU64"\n",
- obd->obd_name, what, oa->o_id);
+ if (dchild->d_inode == NULL) {
+ if (!quiet)
+ CERROR("%s: %s on non-existent object: "LPU64"\n",
+ obd->obd_name, what, oa->o_id);
f_dput(dchild);
RETURN(ERR_PTR(-ENOENT));
}
int rc, rc2;
ENTRY;
- dentry = filter_oa2dentry(exp->exp_obd, oa);
+ dentry = __filter_oa2dentry(exp->exp_obd, oa, __FUNCTION__, 1);
if (IS_ERR(dentry))
RETURN(PTR_ERR(dentry));
struct dentry *filter_fid2dentry(struct obd_device *, struct dentry *dir,
obd_gr group, obd_id id);
struct dentry *__filter_oa2dentry(struct obd_device *obd, struct obdo *oa,
- const char *what);
-#define filter_oa2dentry(obd, oa) __filter_oa2dentry(obd, oa, __FUNCTION__)
+ const char *what, int quiet);
+#define filter_oa2dentry(obd, oa) __filter_oa2dentry(obd, oa, __FUNCTION__, 0)
int filter_finish_transno(struct obd_export *, struct obd_trans_info *, int rc);
__u64 filter_next_id(struct filter_obd *, struct obdo *);