Lines Matching refs:nfsi
234 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_init_inode() local
236 nfsi->fscache = NULL; in nfs_fscache_init_inode()
241 auxdata.mtime = timespec64_to_timespec(nfsi->vfs_inode.i_mtime); in nfs_fscache_init_inode()
242 auxdata.ctime = timespec64_to_timespec(nfsi->vfs_inode.i_ctime); in nfs_fscache_init_inode()
244 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_init_inode()
245 auxdata.change_attr = inode_peek_iversion_raw(&nfsi->vfs_inode); in nfs_fscache_init_inode()
247 nfsi->fscache = fscache_acquire_cookie(NFS_SB(inode->i_sb)->fscache, in nfs_fscache_init_inode()
249 nfsi->fh.data, nfsi->fh.size, in nfs_fscache_init_inode()
251 nfsi, nfsi->vfs_inode.i_size, false); in nfs_fscache_init_inode()
260 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_clear_inode() local
263 dfprintk(FSCACHE, "NFS: clear cookie (0x%p/0x%p)\n", nfsi, cookie); in nfs_fscache_clear_inode()
266 auxdata.mtime = timespec64_to_timespec(nfsi->vfs_inode.i_mtime); in nfs_fscache_clear_inode()
267 auxdata.ctime = timespec64_to_timespec(nfsi->vfs_inode.i_ctime); in nfs_fscache_clear_inode()
269 nfsi->fscache = NULL; in nfs_fscache_clear_inode()
301 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_open_file() local
308 auxdata.mtime = timespec64_to_timespec(nfsi->vfs_inode.i_mtime); in nfs_fscache_open_file()
309 auxdata.ctime = timespec64_to_timespec(nfsi->vfs_inode.i_ctime); in nfs_fscache_open_file()
312 dfprintk(FSCACHE, "NFS: nfsi 0x%p disabling cache\n", nfsi); in nfs_fscache_open_file()
313 clear_bit(NFS_INO_FSCACHE, &nfsi->flags); in nfs_fscache_open_file()
317 dfprintk(FSCACHE, "NFS: nfsi 0x%p enabling cache\n", nfsi); in nfs_fscache_open_file()
318 fscache_enable_cookie(cookie, &auxdata, nfsi->vfs_inode.i_size, in nfs_fscache_open_file()