ceph: avoid dcache readdir for snapdir
authorSage Weil <sage@newdream.net>
Thu, 22 Jul 2010 20:47:21 +0000 (13:47 -0700)
committerSage Weil <sage@newdream.net>
Thu, 22 Jul 2010 20:50:45 +0000 (13:50 -0700)
commita0dff78dab0ff8d78bd5c9e33c105cf1292f2282
tree70e63198ffd47f391b804e6d8303778cf514e581
parentb37fa16e78d6f9790462b3181602a26b5af36260
ceph: avoid dcache readdir for snapdir

We should always go to the MDS for readdir on the hidden snapdir.  The
set of snapshots can change at any time; the client can't trust its cache
for that.

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