X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Flutil.c;h=2ec4aa2e8026f6ede4f9c7f3ffca2d2c663c936e;hb=e8bf4e3eadf1cec9a0c9dca609a0b023fc5a397d;hp=ce875394e7b61abaeab6d27fffbf3c2828ecb3f7;hpb=3f92a017ae2d97506db89b34c374bbcf9670db54;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/lutil.c b/lustre/liblustre/lutil.c index ce87539..2ec4aa2 100644 --- a/lustre/liblustre/lutil.c +++ b/lustre/liblustre/lutil.c @@ -232,11 +232,11 @@ int cfs_cap_raised(cfs_cap_t cap) } cfs_cap_t cfs_curproc_cap_pack(void) { - return cfs_current()->cap_effective; + return current->cap_effective; } void cfs_curproc_cap_unpack(cfs_cap_t cap) { - cfs_current()->cap_effective = cap; + current->cap_effective = cap; } int cfs_capable(cfs_cap_t cap)