[PATCH] fuse: ->readpages() cleanup

This just ignore the remaining pages.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Steven French <sfrench@us.ibm.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by OGAWA Hirofumi and committed by Linus Torvalds 2e990021 05ac9d4b

+3 -6
+3 -6
fs/fuse/file.c
··· 397 397 398 398 err = -EIO; 399 399 if (is_bad_inode(inode)) 400 - goto clean_pages_up; 400 + goto out; 401 401 402 402 data.file = file; 403 403 data.inode = inode; 404 404 data.req = fuse_get_req(fc); 405 405 err = PTR_ERR(data.req); 406 406 if (IS_ERR(data.req)) 407 - goto clean_pages_up; 407 + goto out; 408 408 409 409 err = read_cache_pages(mapping, pages, fuse_readpages_fill, &data); 410 410 if (!err) { ··· 413 413 else 414 414 fuse_put_request(fc, data.req); 415 415 } 416 - return err; 417 - 418 - clean_pages_up: 419 - put_pages_list(pages); 416 + out: 420 417 return err; 421 418 } 422 419