vfs: add rcu argument to ->get_acl() callback
[sfrench/cifs-2.6.git] / fs / reiserfs / xattr_acl.c
index a9547144a09995104d530add71577dd61fe02c3d..d6fcddc46f5b7f59a0d3299c814f3b57635fb40c 100644 (file)
@@ -190,13 +190,16 @@ fail:
  * inode->i_mutex: down
  * BKL held [before 2.5.x]
  */
-struct posix_acl *reiserfs_get_acl(struct inode *inode, int type)
+struct posix_acl *reiserfs_get_acl(struct inode *inode, int type, bool rcu)
 {
        char *name, *value;
        struct posix_acl *acl;
        int size;
        int retval;
 
+       if (rcu)
+               return ERR_PTR(-ECHILD);
+
        switch (type) {
        case ACL_TYPE_ACCESS:
                name = XATTR_NAME_POSIX_ACL_ACCESS;