1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * This code is issued under the GNU General Public License.
5 * See the file COPYING in this distribution
7 * Copyright (C) 2001, Cluster File Systems, Inc.
12 #include <linux/locks.h>
13 #include <linux/quotaops.h>
15 #define DEBUG_SUBSYSTEM S_LLITE
17 #include <linux/obd_support.h>
18 #include <linux/lustre_lite.h>
20 extern struct address_space_operations ll_aops;
22 void ll_intent_release(struct dentry *de)
24 struct ldlm_lock *lock;
25 struct lustre_handle *handle;
28 if (de->d_it == NULL) {
33 handle = (struct lustre_handle *)de->d_it->it_lock_handle;
34 lock = lustre_handle2object(handle);
35 CDEBUG(D_INFO, "calling ldlm_lock_decref(%p, %d)\n", lock,
36 de->d_it->it_lock_mode);
37 ldlm_lock_decref(lock, de->d_it->it_lock_mode);
41 int ll_revalidate2(struct dentry *de, int flags, struct lookup_intent *it)
49 struct dentry_operations ll_d_ops = {
50 d_revalidate2: ll_revalidate2,
51 d_intent_release: ll_intent_release