diff options
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index cbe875d3a522..1a867a3601ae 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -1027,14 +1027,13 @@ out_touch: | |||
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | /* | 1029 | /* |
1030 | * When a dentry is released, clear the dir I_COMPLETE if it was part | 1030 | * Release our ceph_dentry_info. |
1031 | * of the current dir gen or if this is in the snapshot namespace. | ||
1032 | */ | 1031 | */ |
1033 | static void ceph_dentry_release(struct dentry *dentry) | 1032 | static void ceph_d_release(struct dentry *dentry) |
1034 | { | 1033 | { |
1035 | struct ceph_dentry_info *di = ceph_dentry(dentry); | 1034 | struct ceph_dentry_info *di = ceph_dentry(dentry); |
1036 | 1035 | ||
1037 | dout("dentry_release %p\n", dentry); | 1036 | dout("d_release %p\n", dentry); |
1038 | if (di) { | 1037 | if (di) { |
1039 | ceph_dentry_lru_del(dentry); | 1038 | ceph_dentry_lru_del(dentry); |
1040 | if (di->lease_session) | 1039 | if (di->lease_session) |
@@ -1259,14 +1258,14 @@ const struct inode_operations ceph_dir_iops = { | |||
1259 | 1258 | ||
1260 | const struct dentry_operations ceph_dentry_ops = { | 1259 | const struct dentry_operations ceph_dentry_ops = { |
1261 | .d_revalidate = ceph_d_revalidate, | 1260 | .d_revalidate = ceph_d_revalidate, |
1262 | .d_release = ceph_dentry_release, | 1261 | .d_release = ceph_d_release, |
1263 | }; | 1262 | }; |
1264 | 1263 | ||
1265 | const struct dentry_operations ceph_snapdir_dentry_ops = { | 1264 | const struct dentry_operations ceph_snapdir_dentry_ops = { |
1266 | .d_revalidate = ceph_snapdir_d_revalidate, | 1265 | .d_revalidate = ceph_snapdir_d_revalidate, |
1267 | .d_release = ceph_dentry_release, | 1266 | .d_release = ceph_d_release, |
1268 | }; | 1267 | }; |
1269 | 1268 | ||
1270 | const struct dentry_operations ceph_snap_dentry_ops = { | 1269 | const struct dentry_operations ceph_snap_dentry_ops = { |
1271 | .d_release = ceph_dentry_release, | 1270 | .d_release = ceph_d_release, |
1272 | }; | 1271 | }; |