aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 5ac6434185ae..418f6a82c90d 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -1469,11 +1469,6 @@ retry:
1469 else 1469 else
1470 len += 1 + temp->d_name.len; 1470 len += 1 + temp->d_name.len;
1471 temp = temp->d_parent; 1471 temp = temp->d_parent;
1472 if (temp == NULL) {
1473 rcu_read_unlock();
1474 pr_err("build_path corrupt dentry %p\n", dentry);
1475 return ERR_PTR(-EINVAL);
1476 }
1477 } 1472 }
1478 rcu_read_unlock(); 1473 rcu_read_unlock();
1479 if (len) 1474 if (len)
@@ -1510,12 +1505,6 @@ retry:
1510 if (pos) 1505 if (pos)
1511 path[--pos] = '/'; 1506 path[--pos] = '/';
1512 temp = temp->d_parent; 1507 temp = temp->d_parent;
1513 if (temp == NULL) {
1514 rcu_read_unlock();
1515 pr_err("build_path corrupt dentry\n");
1516 kfree(path);
1517 return ERR_PTR(-EINVAL);
1518 }
1519 } 1508 }
1520 rcu_read_unlock(); 1509 rcu_read_unlock();
1521 if (pos != 0 || read_seqretry(&rename_lock, seq)) { 1510 if (pos != 0 || read_seqretry(&rename_lock, seq)) {