quota: optimize mark_dirty logic
authorDmitry Monakhov <dmonakhov@openvz.org>
Sat, 27 Mar 2010 12:15:38 +0000 (15:15 +0300)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:37 +0000 (19:30 +0200)
commiteabf290d1470921f0ce5a9b22464ae30646a0677
treeba3a4ae74101a2ca31fabdbfa3576776cbddf2ed
parent46891532370e862d6bddedef9e6ca22a59a51fa4
quota: optimize mark_dirty logic

- Skip locking if quota is dirty already.
- Return old quota state to help fs-specciffic implementation to optimize
  case where quota was dirty already.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c