]> Pileus Git - ~andy/linux/blobdiff - fs/nfs/nfs4renewd.c
Merge branch 'xen/xenbus' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen
[~andy/linux] / fs / nfs / nfs4renewd.c
index cde5650ee5a22cc98befb6af685be0801eb0ece7..402143d75fc5c598da1efee03478a2ea1a3726f2 100644 (file)
@@ -80,7 +80,7 @@ nfs4_renew_state(struct work_struct *work)
                cred = ops->get_state_renewal_cred_locked(clp);
                spin_unlock(&clp->cl_lock);
                if (cred == NULL) {
-                       if (list_empty(&clp->cl_delegations)) {
+                       if (!nfs_delegations_present(clp)) {
                                set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state);
                                goto out;
                        }