nfs4super.c (85a3685852d9ac7d92be9d824533c915a4597fa4) | nfs4super.c (40c64c26a43494ba9982fd1b87dc54e3819566fc) |
---|---|
1/* 2 * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com> 3 */ 4#include <linux/init.h> 5#include <linux/module.h> | 1/* 2 * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com> 3 */ 4#include <linux/init.h> 5#include <linux/module.h> |
6#include <linux/nfs_idmap.h> | |
7#include <linux/nfs4_mount.h> 8#include <linux/nfs_fs.h> 9#include "delegation.h" 10#include "internal.h" 11#include "nfs4_fs.h" | 6#include <linux/nfs4_mount.h> 7#include <linux/nfs_fs.h> 8#include "delegation.h" 9#include "internal.h" 10#include "nfs4_fs.h" |
11#include "nfs4idmap.h" |
|
12#include "dns_resolve.h" 13#include "pnfs.h" 14#include "nfs.h" 15 16#define NFSDBG_FACILITY NFSDBG_VFS 17 18static int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc); 19static void nfs4_evict_inode(struct inode *inode); --- 66 unchanged lines hidden (view full) --- 86 * Clean out any remaining NFSv4 state that might be left over due 87 * to open() calls that passed nfs_atomic_lookup, but failed to call 88 * nfs_open(). 89 */ 90static void nfs4_evict_inode(struct inode *inode) 91{ 92 truncate_inode_pages_final(&inode->i_data); 93 clear_inode(inode); | 12#include "dns_resolve.h" 13#include "pnfs.h" 14#include "nfs.h" 15 16#define NFSDBG_FACILITY NFSDBG_VFS 17 18static int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc); 19static void nfs4_evict_inode(struct inode *inode); --- 66 unchanged lines hidden (view full) --- 86 * Clean out any remaining NFSv4 state that might be left over due 87 * to open() calls that passed nfs_atomic_lookup, but failed to call 88 * nfs_open(). 89 */ 90static void nfs4_evict_inode(struct inode *inode) 91{ 92 truncate_inode_pages_final(&inode->i_data); 93 clear_inode(inode); |
94 pnfs_return_layout(inode); 95 pnfs_destroy_layout(NFS_I(inode)); | |
96 /* If we are holding a delegation, return it! */ 97 nfs_inode_return_delegation_noreclaim(inode); | 94 /* If we are holding a delegation, return it! */ 95 nfs_inode_return_delegation_noreclaim(inode); |
96 /* Note that above delegreturn would trigger pnfs return-on-close */ 97 pnfs_return_layout(inode); 98 pnfs_destroy_layout(NFS_I(inode)); |
|
98 /* First call standard NFS clear_inode() code */ 99 nfs_clear_inode(inode); 100} 101 102/* 103 * Get the superblock for the NFS4 root partition 104 */ 105static struct dentry * --- 255 unchanged lines hidden --- | 99 /* First call standard NFS clear_inode() code */ 100 nfs_clear_inode(inode); 101} 102 103/* 104 * Get the superblock for the NFS4 root partition 105 */ 106static struct dentry * --- 255 unchanged lines hidden --- |