vfs: add rcu argument to ->get_acl() callback
[sfrench/cifs-2.6.git] / fs / btrfs / acl.c
index d95eb5c8cb3736e5bd204167a1e9f2358849926d..3d00bb5deded35843849d2b12f8d51c49f81b3d1 100644 (file)
 #include "btrfs_inode.h"
 #include "xattr.h"
 
-struct posix_acl *btrfs_get_acl(struct inode *inode, int type)
+struct posix_acl *btrfs_get_acl(struct inode *inode, int type, bool rcu)
 {
        int size;
        const char *name;
        char *value = NULL;
        struct posix_acl *acl;
 
+       if (rcu)
+               return ERR_PTR(-ECHILD);
+
        switch (type) {
        case ACL_TYPE_ACCESS:
                name = XATTR_NAME_POSIX_ACL_ACCESS;