Skip to content

Commit a9de673

Browse files
Paulo Alcantarasmfrench
authored andcommitted
smb: client: set correct device number on nfs reparse points
Fix major and minor numbers set on special files created with NFS reparse points. Signed-off-by: Paulo Alcantara (Red Hat) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 4e3ba58 commit a9de673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/smb/client/reparse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ static int nfs_set_reparse_buf(struct reparse_posix_data *buf,
108108
buf->InodeType = cpu_to_le64(type);
109109
buf->ReparseDataLength = cpu_to_le16(len + dlen -
110110
sizeof(struct reparse_data_buffer));
111-
*(__le64 *)buf->DataBuffer = cpu_to_le64(((u64)MAJOR(dev) << 32) |
112-
MINOR(dev));
111+
*(__le64 *)buf->DataBuffer = cpu_to_le64(((u64)MINOR(dev) << 32) |
112+
MAJOR(dev));
113113
iov->iov_base = buf;
114114
iov->iov_len = len + dlen;
115115
return 0;

0 commit comments

Comments
 (0)