mirror of
https://github.com/ceph/ceph
synced 2025-01-31 15:32:38 +00:00
mds: make cast explicit to suppress compiler warning.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
parent
7612c7629b
commit
0568d5cb50
@ -3220,7 +3220,7 @@ void Server::handle_client_setdirlayout(MDRequest *mdr)
|
||||
layout->layout.fl_cas_hash = req->head.args.setlayout.layout.fl_cas_hash;
|
||||
if (req->head.args.setlayout.layout.fl_object_stripe_unit > 0)
|
||||
layout->layout.fl_object_stripe_unit = req->head.args.setlayout.layout.fl_object_stripe_unit;
|
||||
if (req->head.args.setlayout.layout.fl_pg_preferred != -1)
|
||||
if (req->head.args.setlayout.layout.fl_pg_preferred != (__le32)-1)
|
||||
layout->layout.fl_pg_preferred = req->head.args.setlayout.layout.fl_pg_preferred;
|
||||
if (req->head.args.setlayout.layout.fl_pg_pool > 0)
|
||||
layout->layout.fl_pg_pool = req->head.args.setlayout.layout.fl_pg_pool;
|
||||
|
Loading…
Reference in New Issue
Block a user