Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] NFS: Remove unused NFS inode field readdir_timestamp.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

+3 -6
+3 -5
fs/nfs/dir.c
··· 165 165 NFS_FLAGS(inode) |= NFS_INO_INVALID_ATIME; 166 166 /* Ensure consistent page alignment of the data. 167 167 * Note: assumes we have exclusive access to this mapping either 168 - * throught inode->i_sem or some other mechanism. 168 + * through inode->i_sem or some other mechanism. 169 169 */ 170 - if (page->index == 0) { 171 - invalidate_inode_pages(inode->i_mapping); 172 - NFS_I(inode)->readdir_timestamp = timestamp; 173 - } 170 + if (page->index == 0) 171 + invalidate_inode_pages2_range(inode->i_mapping, PAGE_CACHE_SIZE, -1); 174 172 unlock_page(page); 175 173 return 0; 176 174 error:
-1
include/linux/nfs_fs.h
··· 128 128 * 129 129 * mtime != read_cache_mtime 130 130 */ 131 - unsigned long readdir_timestamp; 132 131 unsigned long read_cache_jiffies; 133 132 unsigned long attrtimeo; 134 133 unsigned long attrtimeo_timestamp;