Repository navigation
Commit a4483e8
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 <chao2.yu@samsung.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>1 parent 3b70b38 commit a4483e8
2 files changed
Lines changed: 0 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | 1079 | | |
1086 | 1080 | | |
1087 | 1081 | | |
| |||
1099 | 1093 | | |
1100 | 1094 | | |
1101 | 1095 | | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | 1096 | | |
1106 | 1097 | | |
1107 | 1098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | 1816 | | |
1821 | 1817 | | |
1822 | 1818 | | |
| |||
1896 | 1892 | | |
1897 | 1893 | | |
1898 | 1894 | | |
1899 | | - | |
1900 | | - | |
1901 | 1895 | | |
1902 | 1896 | | |
1903 | 1897 | | |
| |||
0 commit comments