diff options
author | Sage Weil <sage@newdream.net> | 2010-05-14 10:02:57 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-17 15:25:40 -0700 |
commit | 167c9e352deb7e25568c926c49c3eafad69cbe76 (patch) | |
tree | b420c256e60accca30704059ab676e878cf49603 /fs/ceph/mds_client.h | |
parent | 85792d0dd6e7a7a18fba55c97e49871211b28fe0 (diff) | |
download | lwn-167c9e352deb7e25568c926c49c3eafad69cbe76.tar.gz lwn-167c9e352deb7e25568c926c49c3eafad69cbe76.zip |
ceph: use common helper for aborted dir request invalidation
We invalidate I_COMPLETE and dentry leases in two places: on aborted mds
request and on request replay. Use common helper to avoid duplicate code.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.h')
-rw-r--r-- | fs/ceph/mds_client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h index 141a265bda75..d9936c4f1212 100644 --- a/fs/ceph/mds_client.h +++ b/fs/ceph/mds_client.h @@ -303,6 +303,8 @@ extern void ceph_mdsc_lease_release(struct ceph_mds_client *mdsc, struct inode *inode, struct dentry *dn, int mask); +extern void ceph_invalidate_dir_request(struct ceph_mds_request *req); + extern struct ceph_mds_request * ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op, int mode); extern void ceph_mdsc_submit_request(struct ceph_mds_client *mdsc, |