shift current_cred() from __f_setown() to f_modown()
authorOleg Nesterov <oleg@redhat.com>
Tue, 16 Jun 2009 20:07:46 +0000 (22:07 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 16 Jun 2009 21:19:00 +0000 (14:19 -0700)
commit2f38d70fb4e97e7d00e12eaac45790cf6ebd7b22
tree393a604669640635a33c1db179bd053d8b923252
parentb3fec0fe35a4ff048484f1408385a27695d4273b
shift current_cred() from __f_setown() to f_modown()

Shift current_cred() from __f_setown() to f_modown(). This reduces
the number of arguments and saves 48 bytes from fs/fcntl.o.

[ Note: this doesn't clear euid/uid when pid is set to NULL.  But if
  f_owner.pid == NULL we never use f_owner.uid/euid.  Otherwise we'd
  have a bug anyway: we must not send signals if pid was reset to NULL.  ]

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fcntl.c