Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169181
b: refs/heads/master
c: 796bd95
h: refs/heads/master
i:
  169179: 2d6c64a
v: v3
  • Loading branch information
Steven Whitehouse committed Dec 3, 2009
1 parent 6fe939b commit 62e7cdb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2646a1f61a3b5525914757f10fa12b5b94713648
refs/heads/master: 796bd9524731850967d437b7f47a86acc776ea89
14 changes: 14 additions & 0 deletions trunk/include/linux/posix_acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,20 @@ static inline void forget_cached_acl(struct inode *inode, int type)
if (old != ACL_NOT_CACHED)
posix_acl_release(old);
}

static inline void forget_all_cached_acls(struct inode *inode)
{
struct posix_acl *old_access, *old_default;
spin_lock(&inode->i_lock);
old_access = inode->i_acl;
old_default = inode->i_default_acl;
inode->i_acl = inode->i_default_acl = ACL_NOT_CACHED;
spin_unlock(&inode->i_lock);
if (old_access != ACL_NOT_CACHED)
posix_acl_release(old_access);
if (old_default != ACL_NOT_CACHED)
posix_acl_release(old_default);
}
#endif

static inline void cache_no_acl(struct inode *inode)
Expand Down

0 comments on commit 62e7cdb

Please sign in to comment.