aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2005-06-22 13:16:23 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-06-22 16:07:15 -0400
commite50a1c2e1f816c81eed6a589019052cb44189267 (patch)
treee59dd290e136bd0eb5fc56d325bf34f5ca1efdfb /fs/nfs/inode.c
parent4b580ee3dc00f9828a9a7aad2724f448fdc94075 (diff)
[PATCH] NFSv4: client-side caching NFSv4 ACLs
Add nfs4_acl field to the nfs_inode, and use it to cache acls. Only cache acls of size up to a page. Also prepare for up to a page of acl data even when the user doesn't pass in a buffer, as when they want to get the acl length to decide what size buffer to allocate. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index c45bd52cc1d7..350c48c12639 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -142,10 +142,6 @@ nfs_delete_inode(struct inode * inode)
142 clear_inode(inode); 142 clear_inode(inode);
143} 143}
144 144
145/*
146 * For the moment, the only task for the NFS clear_inode method is to
147 * release the mmap credential
148 */
149static void 145static void
150nfs_clear_inode(struct inode *inode) 146nfs_clear_inode(struct inode *inode)
151{ 147{
@@ -1923,6 +1919,9 @@ static struct inode *nfs_alloc_inode(struct super_block *sb)
1923 if (!nfsi) 1919 if (!nfsi)
1924 return NULL; 1920 return NULL;
1925 nfsi->flags = 0; 1921 nfsi->flags = 0;
1922#ifdef CONFIG_NFS_V4
1923 nfsi->nfs4_acl = NULL;
1924#endif /* CONFIG_NFS_V4 */
1926 return &nfsi->vfs_inode; 1925 return &nfsi->vfs_inode;
1927} 1926}
1928 1927