vfs: add rcu argument to ->get_acl() callback
[sfrench/cifs-2.6.git] / fs / jfs / acl.c
index 43c285c3d2a78398797a7a3e1f39fcba83ec7a65..a653f34c6e263ab755b71d6701bc83753f479780 100644 (file)
 #include "jfs_xattr.h"
 #include "jfs_acl.h"
 
-struct posix_acl *jfs_get_acl(struct inode *inode, int type)
+struct posix_acl *jfs_get_acl(struct inode *inode, int type, bool rcu)
 {
        struct posix_acl *acl;
        char *ea_name;
        int size;
        char *value = NULL;
 
+       if (rcu)
+               return ERR_PTR(-ECHILD);
+
        switch(type) {
                case ACL_TYPE_ACCESS:
                        ea_name = XATTR_NAME_POSIX_ACL_ACCESS;