dir.c (edc4ff7c08e9885c40e60c4fb39fa42cc91a0602) dir.c (44b11874ff583b6e766a05856b04f3c492c32b84)
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

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

523
524 dfprintk(VFS, "NFS: readdir(%s/%s) starting at cookie %Lu\n",
525 dentry->d_parent->d_name.name, dentry->d_name.name,
526 (long long)filp->f_pos);
527 nfs_inc_stats(inode, NFSIOS_VFSGETDENTS);
528
529 lock_kernel();
530
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

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

523
524 dfprintk(VFS, "NFS: readdir(%s/%s) starting at cookie %Lu\n",
525 dentry->d_parent->d_name.name, dentry->d_name.name,
526 (long long)filp->f_pos);
527 nfs_inc_stats(inode, NFSIOS_VFSGETDENTS);
528
529 lock_kernel();
530
531 res = nfs_revalidate_inode(NFS_SERVER(inode), inode);
531 res = nfs_revalidate_mapping(inode, filp->f_mapping);
532 if (res < 0) {
533 unlock_kernel();
534 return res;
535 }
536
537 /*
538 * filp->f_pos points to the dirent entry number.
539 * *desc->dir_cookie has the cookie for the next entry. We have

--- 1200 unchanged lines hidden ---
532 if (res < 0) {
533 unlock_kernel();
534 return res;
535 }
536
537 /*
538 * filp->f_pos points to the dirent entry number.
539 * *desc->dir_cookie has the cookie for the next entry. We have

--- 1200 unchanged lines hidden ---