if ((handler->flags == XATTR_ACL_ACCESS_T ||
handler->flags == XATTR_ACL_DEFAULT_T) &&
- !(sbi->ll_flags & LL_SBI_ACL))
+ !test_bit(LL_SBI_ACL, sbi->ll_flags))
return -EOPNOTSUPP;
if (handler->flags == XATTR_USER_T &&
- !(sbi->ll_flags & LL_SBI_USER_XATTR))
+ !test_bit(LL_SBI_USER_XATTR, sbi->ll_flags))
return -EOPNOTSUPP;
if (handler->flags == XATTR_TRUSTED_T &&
if (rc) {
if (rc == -EOPNOTSUPP && handler->flags == XATTR_USER_T) {
LCONSOLE_INFO("Disabling user_xattr feature because it is not supported on the server\n");
- sbi->ll_flags &= ~LL_SBI_USER_XATTR;
+ clear_bit(LL_SBI_USER_XATTR, sbi->ll_flags);
}
RETURN(rc);
}
LCONSOLE_INFO("%s: disabling user_xattr feature because "
"it is not supported on the server: rc = %d\n",
sbi->ll_fsname, rc);
- sbi->ll_flags &= ~LL_SBI_USER_XATTR;
+ clear_bit(LL_SBI_USER_XATTR, sbi->ll_flags);
}
out:
ptlrpc_req_finished(req);