Skip to content

Commit d9ee655

Browse files
committed
NFS: Fix an incorrect type in struct nfs_direct_req
The start offset needs to be of type loff_t. Fixed: 5fadeb4 ("nfs: count DIO good bytes correctly with mirroring") Cc: stable@vger.kernel.org # v4.0+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
1 parent 1b88acc commit d9ee655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/direct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ struct nfs_direct_req {
8686
struct nfs_direct_mirror mirrors[NFS_PAGEIO_DESCRIPTOR_MIRROR_MAX];
8787
int mirror_count;
8888

89+
loff_t io_start; /* Start offset for I/O */
8990
ssize_t count, /* bytes actually processed */
9091
max_count, /* max expected count */
9192
bytes_left, /* bytes left to be sent */
92-
io_start, /* start of IO */
9393
error; /* any reported error */
9494
struct completion completion; /* wait for i/o completion */
9595

0 commit comments

Comments
 (0)