From: Jan Kara Date: Tue, 6 Sep 2016 16:04:40 +0000 (+0200) Subject: udf: Remove useless check in udf_adinicb_write_begin() X-Git-Tag: v4.9-rc1~126^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f27792f5b7e0ba8407fcdeabb5db778fe929ab78;p=karo-tx-linux.git udf: Remove useless check in udf_adinicb_write_begin() As Al properly points out, len is guaranteed to be smaller than PAGE_SIZE when we reach udf_adinicb_write_begin() as otherwise we would have converted the file to the normal format. Reported-by: Al Viro Signed-off-by: Jan Kara --- diff --git a/fs/udf/file.c b/fs/udf/file.c index 632570617327..254bc02d7e2c 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c @@ -94,7 +94,7 @@ static int udf_adinicb_write_begin(struct file *file, return -ENOMEM; *pagep = page; - if (!PageUptodate(page) && len != PAGE_SIZE) + if (!PageUptodate(page)) __udf_adinicb_readpage(page); return 0; }