acct: simplify check_free_space()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 19 Apr 2014 18:24:18 +0000 (14:24 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:08 +0000 (14:40 -0400)
commit54a4d58a6459a93fc6ee898354b3d2ffb80dd03a
treec47084891155b17c7fadad5a6a4a4900582bfedc
parentb8f00e6be46f4c9a112e05fd692712873c4c4048
acct: simplify check_free_space()

a) file can't be NULL
b) file can't be changed under us
c) all writes are serialized by acct->lock; no need to mess with
spinlock there.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/acct.c