* of foreign LOV is relative path of faked symlink destination,
* to be completed by prefix
*/
- if (!(sbi->ll_flags & LL_SBI_FOREIGN_SYMLINK_UPCALL))
+ if (!test_bit(LL_SBI_FOREIGN_SYMLINK_UPCALL, sbi->ll_flags))
rc = ll_foreign_symlink_default_parse(sbi, inode, lfm,
destname);
else /* upcall is available */
ll_kset.kobj);
return snprintf(buf, PAGE_SIZE, "%d\n",
- !!(sbi->ll_flags & LL_SBI_FOREIGN_SYMLINK));
+ test_bit(LL_SBI_FOREIGN_SYMLINK, sbi->ll_flags));
}
/*
return rc;
if (val)
- sbi->ll_flags |= LL_SBI_FOREIGN_SYMLINK;
+ set_bit(LL_SBI_FOREIGN_SYMLINK, sbi->ll_flags);
else
- sbi->ll_flags &= ~LL_SBI_FOREIGN_SYMLINK;
+ clear_bit(LL_SBI_FOREIGN_SYMLINK, sbi->ll_flags);
return count;
}
* order, we may end up using the format provided by a different
* upcall than the one set in ll_foreign_symlink_upcall
*/
- sbi->ll_flags &= ~LL_SBI_FOREIGN_SYMLINK_UPCALL;
+ clear_bit(LL_SBI_FOREIGN_SYMLINK_UPCALL, sbi->ll_flags);
up_write(&sbi->ll_foreign_symlink_sem);
if (strcmp(new, "none")) {
old_nb_items = sbi->ll_foreign_symlink_upcall_nb_items;
sbi->ll_foreign_symlink_upcall_items = new_items;
sbi->ll_foreign_symlink_upcall_nb_items = nb_items;
- sbi->ll_flags |= LL_SBI_FOREIGN_SYMLINK_UPCALL;
+ set_bit(LL_SBI_FOREIGN_SYMLINK_UPCALL, sbi->ll_flags);
up_write(&sbi->ll_foreign_symlink_sem);
/* free old_items */