Project

General

Profile

Actions

Cleanup #468

closed

mds: use enum for LOCK_* in mds/locks.h

Added by Sage Weil over 13 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

We just fixed a bug that (I think?) the compiler would have warned about.. in->get_state() LOCK_MIX instead of lock->get_state() LOCK_MIX.

Although keep in mind the SimpleLock state member has a specific number of bits so that it encodes properly (and aligns efficiently?). Maybe get_state() should cast the return value to a lock_state_t or something?

Actions #1

Updated by Colin McCabe over 13 years ago

Implemented in the cleanup branch.

C.

Actions #2

Updated by Sage Weil over 13 years ago

  • Status changed from New to Resolved
Actions #3

Updated by John Spray over 7 years ago

  • Project changed from Ceph to CephFS
  • Category deleted (1)

Bulk updating project=ceph category=mds bugs so that I can remove the MDS category from the Ceph project to avoid confusion.

Actions

Also available in: Atom PDF