]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: cast PAGE_SIZE to size_t in ceph_sync_write()
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 28 Jan 2014 17:16:18 +0000 (19:16 +0200)
committerSage Weil <sage@inktank.com>
Tue, 28 Jan 2014 17:57:21 +0000 (09:57 -0800)
commit27bf44082ecaa001bc0ddf3e902b91c1fb547185
treeca470b4d6d71254f5becb292d54f223f3c4fc513
parent7eb906144cd0f62cd800d738cc49db517d4c2f3a
ceph: cast PAGE_SIZE to size_t in ceph_sync_write()

Use min_t(size_t, ...) instead of plain min(), which does strict type
checking, to avoid compile warning on i386.

Cc: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/file.c