summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ncpfs/dir.c')
-rw-r--r--fs/ncpfs/dir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index b7f8eaeea5d8..bfdad003ee56 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -510,7 +510,7 @@ static int ncp_readdir(struct file *file, struct dir_context *ctx)
510 kunmap(ctl.page); 510 kunmap(ctl.page);
511 SetPageUptodate(ctl.page); 511 SetPageUptodate(ctl.page);
512 unlock_page(ctl.page); 512 unlock_page(ctl.page);
513 page_cache_release(ctl.page); 513 put_page(ctl.page);
514 ctl.page = NULL; 514 ctl.page = NULL;
515 } 515 }
516 ctl.idx = 0; 516 ctl.idx = 0;
@@ -520,7 +520,7 @@ invalid_cache:
520 if (ctl.page) { 520 if (ctl.page) {
521 kunmap(ctl.page); 521 kunmap(ctl.page);
522 unlock_page(ctl.page); 522 unlock_page(ctl.page);
523 page_cache_release(ctl.page); 523 put_page(ctl.page);
524 ctl.page = NULL; 524 ctl.page = NULL;
525 } 525 }
526 ctl.cache = cache; 526 ctl.cache = cache;
@@ -554,14 +554,14 @@ finished:
554 kunmap(ctl.page); 554 kunmap(ctl.page);
555 SetPageUptodate(ctl.page); 555 SetPageUptodate(ctl.page);
556 unlock_page(ctl.page); 556 unlock_page(ctl.page);
557 page_cache_release(ctl.page); 557 put_page(ctl.page);
558 } 558 }
559 if (page) { 559 if (page) {
560 cache->head = ctl.head; 560 cache->head = ctl.head;
561 kunmap(page); 561 kunmap(page);
562 SetPageUptodate(page); 562 SetPageUptodate(page);
563 unlock_page(page); 563 unlock_page(page);
564 page_cache_release(page); 564 put_page(page);
565 } 565 }
566out: 566out:
567 return result; 567 return result;
@@ -649,7 +649,7 @@ ncp_fill_cache(struct file *file, struct dir_context *ctx,
649 kunmap(ctl.page); 649 kunmap(ctl.page);
650 SetPageUptodate(ctl.page); 650 SetPageUptodate(ctl.page);
651 unlock_page(ctl.page); 651 unlock_page(ctl.page);
652 page_cache_release(ctl.page); 652 put_page(ctl.page);
653 } 653 }
654 ctl.cache = NULL; 654 ctl.cache = NULL;
655 ctl.idx -= NCP_DIRCACHE_SIZE; 655 ctl.idx -= NCP_DIRCACHE_SIZE;