ceph: compare fsc->max_file_size and inode->i_size for max file size limit
authorChengguang Xu <cgxu519@gmx.com>
Thu, 19 Jul 2018 14:15:27 +0000 (22:15 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Aug 2018 15:55:43 +0000 (17:55 +0200)
commit9da12e3a7de1665a14063653b60e872da0ee7810
tree50aa30146497e8ace171bbbbac5fbc50e2d9338a
parent36a4c72d1c6f5f50d4db14a38f296855ae82571b
ceph: compare fsc->max_file_size and inode->i_size for max file size limit

In ceph_llseek(), we compare fsc->max_file_size and inode->i_size to
choose max file size limit.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c