kclient: don't retain caps if inode is closed and nlink == 0

This commit is contained in:
Sage Weil 2009-01-30 11:36:28 -08:00
parent 57d8ba9990
commit 1df22a51a0

View File

@ -792,7 +792,7 @@ retry_locked:
want = file_wanted | used;
retain = want;
if (!mdsc->stopping) {
if (!mdsc->stopping && inode->i_nlink > 0) {
/*
* we cannot retain anything outside of
* (wanted|EXPIREABLE), or else we run the risk of the