From: Chao Yu Date: Wed, 17 Sep 2014 09:26:06 +0000 (+0800) Subject: ceph: remove redundant code for max file size verification X-Git-Tag: omap-for-v3.19/prcm-cleanup~68^2~14 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4483e8a424d76bc1dfacdd94e739fba29d7f83f;p=pandora-kernel.git ceph: remove redundant code for max file size verification Both ceph_update_writeable_page and ceph_setattr will verify file size with max size ceph supported. There are two caller for ceph_update_writeable_page, ceph_write_begin and ceph_page_mkwrite. For ceph_write_begin, we have already verified the size in generic_write_checks of ceph_write_iter; for ceph_page_mkwrite, we have no chance to change file size when mmap. Likewise we have already verified the size in inode_change_ok when we call ceph_setattr. So let's remove the redundant code for max file size verification. Signed-off-by: Chao Yu Reviewed-by: Yan, Zheng --- Reading git-diff-tree failed