Whamcloud - gitweb
LU-6142 lustre: remove ll_file_*_flag wrappers.
[fs/lustre-release.git] / lustre / llite / xattr.c
index 8aeb09e..7392391 100644 (file)
@@ -155,7 +155,7 @@ static int ll_xattr_set_common(const struct xattr_handler *handler,
         */
        if (handler->flags == XATTR_SECURITY_T &&
            !strcmp(name, "c") &&
-           !ll_file_test_and_clear_flag(ll_i2info(inode), LLIF_SET_ENC_CTX))
+           !test_and_clear_bit(LLIF_SET_ENC_CTX, &ll_i2info(inode)->lli_flags))
                RETURN(-EPERM);
 
        fullname = kasprintf(GFP_KERNEL, "%s%s", xattr_prefix(handler), name);