|
@@ -682,7 +682,8 @@ static struct nfs_page *nfs_try_to_update_request(struct inode *inode,
|
|
req->wb_bytes = rqend - req->wb_offset;
|
|
req->wb_bytes = rqend - req->wb_offset;
|
|
out_unlock:
|
|
out_unlock:
|
|
spin_unlock(&inode->i_lock);
|
|
spin_unlock(&inode->i_lock);
|
|
- nfs_clear_request_commit(req);
|
|
|
|
|
|
+ if (req)
|
|
|
|
+ nfs_clear_request_commit(req);
|
|
return req;
|
|
return req;
|
|
out_flushme:
|
|
out_flushme:
|
|
spin_unlock(&inode->i_lock);
|
|
spin_unlock(&inode->i_lock);
|