[PATCH 12/16] udf: use is_xxx_kiocb instead of filp->fl_flags

Dmitry Monakhov
2015-04-04T19:15:43Z

Cc: jack@suse.cz
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
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