]> err.no Git - linux-2.6/blobdiff - fs/lockd/clntlock.c
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/ into merge_linus
[linux-2.6] / fs / lockd / clntlock.c
index a4ab6dd7661f33c5114ea8113b0e496f4a388df0..b85a0ad2cfb622fee0986450f530b44d3f987b16 100644 (file)
@@ -100,12 +100,12 @@ int nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout)
 /*
  * The server lockd has called us back to tell us the lock was granted
  */
-u32 nlmclnt_grant(const struct sockaddr_in *addr, const struct nlm_lock *lock)
+__be32 nlmclnt_grant(const struct sockaddr_in *addr, const struct nlm_lock *lock)
 {
        const struct file_lock *fl = &lock->fl;
        const struct nfs_fh *fh = &lock->fh;
        struct nlm_wait *block;
-       u32 res = nlm_lck_denied;
+       __be32 res = nlm_lck_denied;
 
        /*
         * Look up blocked request based on arguments. 
@@ -184,7 +184,7 @@ restart:
        /* Force a portmap getport - the peer's lockd will
         * most likely end up on a different port.
         */
-       host->h_nextrebind = 0;
+       host->h_nextrebind = jiffies;
        nlm_rebind_host(host);
 
        /* First, reclaim all locks that have been granted. */