inode.c (c3107e3c504d3187ed8eac8179494946faff1481) | inode.c (912a108da767ae75cc929d2854e698aff527ec5d) |
---|---|
1/* 2 * linux/fs/nfs/inode.c 3 * 4 * Copyright (C) 1992 Rick Sladkey 5 * 6 * nfs inode and superblock handling functions 7 * 8 * Modularised by Alan Cox <alan@lxorguk.ukuu.org.uk>, while hacking some --- 988 unchanged lines hidden (view full) --- 997int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) 998{ 999 if (!nfs_need_revalidate_inode(inode)) 1000 return NFS_STALE(inode) ? -ESTALE : 0; 1001 return __nfs_revalidate_inode(server, inode); 1002} 1003EXPORT_SYMBOL_GPL(nfs_revalidate_inode); 1004 | 1/* 2 * linux/fs/nfs/inode.c 3 * 4 * Copyright (C) 1992 Rick Sladkey 5 * 6 * nfs inode and superblock handling functions 7 * 8 * Modularised by Alan Cox <alan@lxorguk.ukuu.org.uk>, while hacking some --- 988 unchanged lines hidden (view full) --- 997int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) 998{ 999 if (!nfs_need_revalidate_inode(inode)) 1000 return NFS_STALE(inode) ? -ESTALE : 0; 1001 return __nfs_revalidate_inode(server, inode); 1002} 1003EXPORT_SYMBOL_GPL(nfs_revalidate_inode); 1004 |
1005int nfs_revalidate_inode_rcu(struct nfs_server *server, struct inode *inode) 1006{ 1007 if (!(NFS_I(inode)->cache_validity & 1008 (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_LABEL)) 1009 && !nfs_attribute_cache_expired(inode)) 1010 return NFS_STALE(inode) ? -ESTALE : 0; 1011 return -ECHILD; 1012} 1013 |
|
1005static int nfs_invalidate_mapping(struct inode *inode, struct address_space *mapping) 1006{ 1007 struct nfs_inode *nfsi = NFS_I(inode); 1008 int ret; 1009 1010 if (mapping->nrpages != 0) { 1011 if (S_ISREG(inode->i_mode)) { 1012 ret = nfs_sync_mapping(mapping); --- 944 unchanged lines hidden --- | 1014static int nfs_invalidate_mapping(struct inode *inode, struct address_space *mapping) 1015{ 1016 struct nfs_inode *nfsi = NFS_I(inode); 1017 int ret; 1018 1019 if (mapping->nrpages != 0) { 1020 if (S_ISREG(inode->i_mode)) { 1021 ret = nfs_sync_mapping(mapping); --- 944 unchanged lines hidden --- |