Cc: jack@xxxxxxx Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx> --- 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 7f885cc..78ccc0f 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c @@ -128,7 +128,7 @@ static ssize_t udf_file_write_iter(struct kiocb *iocb, struct iov_iter *from) mutex_lock(&inode->i_mutex); down_write(&iinfo->i_data_sem); if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) { - if (file->f_flags & O_APPEND) + if (is_append_kiocb(iocb)) pos = inode->i_size; else pos = iocb->ki_pos; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html