Skip to content

Commit

Permalink
udf: Remove useless check in udf_adinicb_write_begin()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
jankara committed Sep 6, 2016
1 parent 3cd0126 commit f27792f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/udf/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f27792f

Please sign in to comment.