File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2393,8 +2393,8 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
2393
2393
2394
2394
if (((file -> f_flags & O_DSYNC ) && !direct_io ) || IS_SYNC (inode ) ||
2395
2395
((file -> f_flags & O_DIRECT ) && !direct_io )) {
2396
- ret = filemap_fdatawrite_range (file -> f_mapping , pos ,
2397
- pos + count - 1 );
2396
+ ret = filemap_fdatawrite_range (file -> f_mapping , * ppos ,
2397
+ * ppos + count - 1 );
2398
2398
if (ret < 0 )
2399
2399
written = ret ;
2400
2400
@@ -2407,8 +2407,8 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
2407
2407
}
2408
2408
2409
2409
if (!ret )
2410
- ret = filemap_fdatawait_range (file -> f_mapping , pos ,
2411
- pos + count - 1 );
2410
+ ret = filemap_fdatawait_range (file -> f_mapping , * ppos ,
2411
+ * ppos + count - 1 );
2412
2412
}
2413
2413
2414
2414
/*
You can’t perform that action at this time.
0 commit comments