]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
NFS: Clean up nfs_create_request comments
authorJason Uhlenkott <juhlenko@akamai.com>
Fri, 27 Apr 2007 00:25:51 +0000 (17:25 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 2 May 2007 14:37:29 +0000 (07:37 -0700)
Remove some stale comments about hard limits which went away in 2.5.

Signed-off-by: Jason Uhlenkott <juhlenko@akamai.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pagelist.c

index d846d39a31efaca7ea08d78eef0a5aa1463dcbc3..fe90130bd7a9201e00250c88a10110b47b60cdbf 100644 (file)
@@ -51,9 +51,7 @@ nfs_page_free(struct nfs_page *p)
  * @count: number of bytes to read/write
  *
  * The page must be locked by the caller. This makes sure we never
- * create two different requests for the same page, and avoids
- * a possible deadlock when we reach the hard limit on the number
- * of dirty pages.
+ * create two different requests for the same page.
  * User should ensure it is safe to sleep in this function.
  */
 struct nfs_page *
@@ -64,16 +62,12 @@ nfs_create_request(struct nfs_open_context *ctx, struct inode *inode,
        struct nfs_server *server = NFS_SERVER(inode);
        struct nfs_page         *req;
 
-       /* Deal with hard limits.  */
        for (;;) {
                /* try to allocate the request struct */
                req = nfs_page_alloc();
                if (req != NULL)
                        break;
 
-               /* Try to free up at least one request in order to stay
-                * below the hard limit
-                */
                if (signalled() && (server->flags & NFS_MOUNT_INTR))
                        return ERR_PTR(-ERESTARTSYS);
                yield();