mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
sunrpc: Use uid_eq and gid_eq where appropriate
When comparing uids use uid_eq instead of ==. When comparing gids use gid_eq instead of ==. And unfortunate cost of type safety. Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
7eaf040b72
commit
0b4d51b02a
4 changed files with 8 additions and 8 deletions
|
@ -433,7 +433,7 @@ static int unix_gid_match(struct cache_head *corig, struct cache_head *cnew)
|
|||
{
|
||||
struct unix_gid *orig = container_of(corig, struct unix_gid, h);
|
||||
struct unix_gid *new = container_of(cnew, struct unix_gid, h);
|
||||
return orig->uid == new->uid;
|
||||
return uid_eq(orig->uid, new->uid);
|
||||
}
|
||||
static void unix_gid_init(struct cache_head *cnew, struct cache_head *citem)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue