ceph: fix d_release dop for snapdir, snapped dentries
authorSage Weil <sage@newdream.net>
Thu, 22 Jul 2010 20:49:08 +0000 (13:49 -0700)
committerSage Weil <sage@newdream.net>
Fri, 23 Jul 2010 17:02:05 +0000 (10:02 -0700)
commit252af5214682191e34e57204e1a31924fb82c207
tree56834ab133d2b466b35dfff0abd4db71a9f658ad
parenta0dff78dab0ff8d78bd5c9e33c105cf1292f2282
ceph: fix d_release dop for snapdir, snapped dentries

We need to set the d_release dop for snapdir and snapped dentries so that
the ceph_dentry_info struct gets released.  We also use the dcache to
cache readdir results when possible, which only works if we know when
dentries are dropped from the cache.  Since we don't use the dcache for
readdir in the hidden snapdir, avoid that case in ceph_dentry_release.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c