diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 16:05:21 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-30 19:06:20 -0400 |
commit | 19d87ca3623956494b517f3abe0caf2616d55457 (patch) | |
tree | b887ceec474eaaa9cc977483dda666276f6d3fe0 /fs/nfs/inode.c | |
parent | 6a74490dca897471a994a542fc7c5a469b48b46b (diff) |
NFS: Split out remaining NFS v4 inode functions
Somehow I missed this in my previous patch series, but these functions
are only needed by the v4 code and should be moved to a v4-only file. I
wasn't exactly sure where I should put these functions, so I moved them
into nfs4super.c where I could make them static.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index e8877c82582d..a6ffa4be2a03 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -106,7 +106,7 @@ u64 nfs_compat_user_ino64(u64 fileid) | |||
106 | return ino; | 106 | return ino; |
107 | } | 107 | } |
108 | 108 | ||
109 | static void nfs_clear_inode(struct inode *inode) | 109 | void nfs_clear_inode(struct inode *inode) |
110 | { | 110 | { |
111 | /* | 111 | /* |
112 | * The following should never happen... | 112 | * The following should never happen... |
@@ -1472,27 +1472,6 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
1472 | return -ESTALE; | 1472 | return -ESTALE; |
1473 | } | 1473 | } |
1474 | 1474 | ||
1475 | |||
1476 | #ifdef CONFIG_NFS_V4 | ||
1477 | |||
1478 | /* | ||
1479 | * Clean out any remaining NFSv4 state that might be left over due | ||
1480 | * to open() calls that passed nfs_atomic_lookup, but failed to call | ||
1481 | * nfs_open(). | ||
1482 | */ | ||
1483 | void nfs4_evict_inode(struct inode *inode) | ||
1484 | { | ||
1485 | truncate_inode_pages(&inode->i_data, 0); | ||
1486 | clear_inode(inode); | ||
1487 | pnfs_return_layout(inode); | ||
1488 | pnfs_destroy_layout(NFS_I(inode)); | ||
1489 | /* If we are holding a delegation, return it! */ | ||
1490 | nfs_inode_return_delegation_noreclaim(inode); | ||
1491 | /* First call standard NFS clear_inode() code */ | ||
1492 | nfs_clear_inode(inode); | ||
1493 | } | ||
1494 | #endif | ||
1495 | |||
1496 | struct inode *nfs_alloc_inode(struct super_block *sb) | 1475 | struct inode *nfs_alloc_inode(struct super_block *sb) |
1497 | { | 1476 | { |
1498 | struct nfs_inode *nfsi; | 1477 | struct nfs_inode *nfsi; |