udf: don't increment lenExtents while writing to a hole
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 9 Oct 2012 15:09:12 +0000 (00:09 +0900)
committerJan Kara <jack@suse.cz>
Thu, 13 Dec 2012 15:33:23 +0000 (16:33 +0100)
commitfb719c59bdb4fca86ee1fd1f42ab3735ca12b6b2
tree0228973d626851649787d383e959b97bba83b1d0
parent2fb7d99d0de3fd8ae869f35ab682581d8455887a
udf: don't increment lenExtents while writing to a hole

Incrementing lenExtents even while writing to a hole is bad
for performance as calls to udf_discard_prealloc and
udf_truncate_tail_extent would not return from start if
isize != lenExtents

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c