mirror of
https://github.com/ceph/ceph
synced 2025-02-16 07:17:21 +00:00
kclient: comments. undo stupid in dir.c
This commit is contained in:
parent
1865b7e72d
commit
fc85ec53a1
@ -372,7 +372,7 @@ static int ceph_create(struct inode *dir, struct dentry *dentry, int mode,
|
||||
|
||||
dout(5, "create in dir %p dentry %p name '%.*s'\n",
|
||||
dir, dentry, dentry->d_name.len, dentry->d_name.name);
|
||||
if (0 && nd) {
|
||||
if (nd) {
|
||||
BUG_ON((nd->flags & LOOKUP_OPEN) == 0);
|
||||
err = ceph_lookup_open(dir, dentry, nd, mode);
|
||||
return err;
|
||||
|
@ -505,8 +505,13 @@ int ceph_dentry_lease_valid(struct dentry *dentry)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* assimilate a full trace of inodes and dentries, from the root to
|
||||
* the item relevant for this reply, into our cache. make any dcache
|
||||
* changes needed to properly reflect the completed operation (e.g.,
|
||||
* call d_move). make note of the distribution of metadata across the
|
||||
* mds cluster.
|
||||
*/
|
||||
int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
|
||||
struct ceph_mds_session *session)
|
||||
{
|
||||
@ -527,8 +532,9 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* to test op resends against a recovering mds, we pretend that
|
||||
* write ops have no trace...
|
||||
* if we resend completed ops to a recovering mds, we get no
|
||||
* trace. pretend this is the case to ensure the 'no trace'
|
||||
* handlers behave.
|
||||
*/
|
||||
if (rinfo->head->op & CEPH_MDS_OP_WRITE) {
|
||||
dout(0, "fill_trace faking empty trace on %d %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user