]> git.baikalelectronics.ru Git - kernel.git/commit
ext3: Don't call dquot_free_block() if we don't update anything
authorKazuya Mio <k-mio@sx.jp.nec.com>
Mon, 30 Jan 2012 08:41:25 +0000 (17:41 +0900)
committerJan Kara <jack@suse.cz>
Wed, 29 Feb 2012 20:53:46 +0000 (21:53 +0100)
commit02da132e328a5959e7df212db4e9b744067929e6
tree8fd6dad627d82b8db442bf15f3c15a2e0f8d2927
parent37b79d6486c7beb13bb91800c95f5287dcbabcd6
ext3: Don't call dquot_free_block() if we don't update anything

dquot_free_block() is called in the end of ext3_new_blocks() and updates
information of the inode structure. However, this update is not necessary
if the number of blocks we requested is equal to the number of
allocated blocks.

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/balloc.c