X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmdd%2Fmdd_lock.c;h=4f1427dafc0735734501b43382c45964b13e8ea2;hb=934ed595e3e1e24086e26435ad59dc1058d2926d;hp=b84d4c26363691994fd045784abcfd654f9cdeeb;hpb=1c2acc4018100d82b30762de5d35a633358b1a33;p=fs%2Flustre-release.git diff --git a/lustre/mdd/mdd_lock.c b/lustre/mdd/mdd_lock.c index b84d4c2..4f1427d 100644 --- a/lustre/mdd/mdd_lock.c +++ b/lustre/mdd/mdd_lock.c @@ -51,7 +51,7 @@ #ifdef CONFIG_LOCKDEP -static struct lock_class_key mdd_pdirop_key; +static cfs_lock_class_key_t mdd_pdirop_key; #define RETIP ((unsigned long)__builtin_return_address(0)) @@ -113,6 +113,12 @@ void mdd_read_unlock(const struct lu_env *env, struct mdd_object *obj) next->do_ops->do_read_unlock(env, next); } +int mdd_write_locked(const struct lu_env *env, struct mdd_object *obj) +{ + struct dt_object *next = mdd_object_child(obj); + + return next->do_ops->do_write_locked(env, next); +} /* Methods for parallel directory locking */