// encode caps
if (snapid != CEPH_NOSNAP) {
/*
- * snapped inodes (files or dirs) only get read-only caps. if
- * there is a Capability on the inode (either it's a dir, or it's
- * a file with a flushing cap), then limit caps issued to what is
- * already on teh cap.
+ * snapped inodes (files or dirs) only get read-only caps. always
+ * issue everything possible, since it is read only.
+ *
+ * if a snapped inode has caps, limit issued caps based on the
+ * lock state.
+ *
+ * if it is a live inode, limit issued caps based on the lock
+ * state.
*
* do NOT adjust cap issued state, because the client always
* tracks caps per-snap and the mds does either per-interval or