[PATCH 2/2] pnfsd-exofs: use nfsd4_encode_deviceid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxx>
---
 fs/exportfs/pnfs_osd_xdr_srv.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/exportfs/pnfs_osd_xdr_srv.c b/fs/exportfs/pnfs_osd_xdr_srv.c
index d0795c44..04a3681 100644
--- a/fs/exportfs/pnfs_osd_xdr_srv.c
+++ b/fs/exportfs/pnfs_osd_xdr_srv.c
@@ -88,8 +88,7 @@ static inline enum nfsstat4 pnfs_osd_xdr_encode_objid(
 	if (!p)
 		return NFS4ERR_TOOSMALL;
 
-	p = exp_xdr_encode_u64(p, dev_id->sbid);
-	p = exp_xdr_encode_u64(p, dev_id->devid);
+	p = nfsd4_encode_deviceid(p, dev_id);
 	p = exp_xdr_encode_u64(p, object_id->oid_partition_id);
 	p = exp_xdr_encode_u64(p, object_id->oid_object_id);
 
-- 
1.7.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux