Fix computation of SKB size for quota messages
authorJan Kara <jack@suse.cz>
Sat, 22 Dec 2007 22:03:25 +0000 (14:03 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 23 Dec 2007 20:54:36 +0000 (12:54 -0800)
commit22dd483721939b4ea22d5d3925e69112f63c42bc
tree9107a4fec871b4798971ca377c044a9d5f783d42
parentb88629060b03adc58639f818fe0968bf5fe81b5d
Fix computation of SKB size for quota messages

Fix computation of size of skb needed for quota message.  We should use
netlink provided functions and not just an ad-hoc number.  Also don't print
the return value from nla_put_foo() as it is always -1.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dquot.c