aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/file.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-09-06 12:04:40 -0400
committerJan Kara <jack@suse.cz>2016-09-06 12:04:40 -0400
commitf27792f5b7e0ba8407fcdeabb5db778fe929ab78 (patch)
tree34671f162509c9ee4914b30bfc27d25c8ebf9a35 /fs/udf/file.c
parent3cd0126dca82ecba8b2a6bf5aca91454da0a0776 (diff)
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>
Diffstat (limited to 'fs/udf/file.c')
-rw-r--r--fs/udf/file.c2
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,
94 return -ENOMEM; 94 return -ENOMEM;
95 *pagep = page; 95 *pagep = page;
96 96
97 if (!PageUptodate(page) && len != PAGE_SIZE) 97 if (!PageUptodate(page))
98 __udf_adinicb_readpage(page); 98 __udf_adinicb_readpage(page);
99 return 0; 99 return 0;
100} 100}