Skip to content

Commit f27792f

Browse files
committed
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent 3cd0126 commit f27792f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/udf/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static int udf_adinicb_write_begin(struct file *file,
9494
return -ENOMEM;
9595
*pagep = page;
9696

97-
if (!PageUptodate(page) && len != PAGE_SIZE)
97+
if (!PageUptodate(page))
9898
__udf_adinicb_readpage(page);
9999
return 0;
100100
}

0 commit comments

Comments
 (0)