dir.c (cd9ae2b6a75bb1fa0d370929c2d7a7da1ed719d9) dir.c (39cf8a1374dc51fea169190674d5e4996a7d7ea2)
1/*
2 * linux/fs/nfs/dir.c
3 *
4 * Copyright (C) 1992 Rick Sladkey
5 *
6 * nfs directory handling functions
7 *
8 * 10 Apr 1996 Added silly rename for unlink --okir

--- 1505 unchanged lines hidden (view full) ---

1514
1515 /*
1516 * No big deal if we can't add this page to the page cache here.
1517 * READLINK will get the missing page from the server if needed.
1518 */
1519 pagevec_init(&lru_pvec, 0);
1520 if (!add_to_page_cache(page, dentry->d_inode->i_mapping, 0,
1521 GFP_KERNEL)) {
1/*
2 * linux/fs/nfs/dir.c
3 *
4 * Copyright (C) 1992 Rick Sladkey
5 *
6 * nfs directory handling functions
7 *
8 * 10 Apr 1996 Added silly rename for unlink --okir

--- 1505 unchanged lines hidden (view full) ---

1514
1515 /*
1516 * No big deal if we can't add this page to the page cache here.
1517 * READLINK will get the missing page from the server if needed.
1518 */
1519 pagevec_init(&lru_pvec, 0);
1520 if (!add_to_page_cache(page, dentry->d_inode->i_mapping, 0,
1521 GFP_KERNEL)) {
1522 if (!pagevec_add(&lru_pvec, page))
1523 __pagevec_lru_add(&lru_pvec);
1522 pagevec_add(&lru_pvec, page);
1523 pagevec_lru_add(&lru_pvec);
1524 SetPageUptodate(page);
1525 unlock_page(page);
1526 } else
1527 __free_page(page);
1528
1529 unlock_kernel();
1530 return 0;
1531}

--- 447 unchanged lines hidden ---
1524 SetPageUptodate(page);
1525 unlock_page(page);
1526 } else
1527 __free_page(page);
1528
1529 unlock_kernel();
1530 return 0;
1531}

--- 447 unchanged lines hidden ---