diff options
author | Jan Kara <jack@suse.cz> | 2016-09-06 18:04:40 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-09-06 18:04:40 +0200 |
commit | f27792f5b7e0ba8407fcdeabb5db778fe929ab78 (patch) | |
tree | 34671f162509c9ee4914b30bfc27d25c8ebf9a35 | |
parent | 3cd0126dca82ecba8b2a6bf5aca91454da0a0776 (diff) | |
download | linux-f27792f5b7e0ba8407fcdeabb5db778fe929ab78.tar.bz2 |
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 <viro@ZenIV.linux.org.uk>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/udf/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |