diff options
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r-- | fs/ceph/addr.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 90b3954d48ed..18c06bbaf136 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -1076,12 +1076,6 @@ retry_locked: | |||
1076 | /* past end of file? */ | 1076 | /* past end of file? */ |
1077 | i_size = inode->i_size; /* caller holds i_mutex */ | 1077 | i_size = inode->i_size; /* caller holds i_mutex */ |
1078 | 1078 | ||
1079 | if (i_size + len > inode->i_sb->s_maxbytes) { | ||
1080 | /* file is too big */ | ||
1081 | r = -EINVAL; | ||
1082 | goto fail; | ||
1083 | } | ||
1084 | |||
1085 | if (page_off >= i_size || | 1079 | if (page_off >= i_size || |
1086 | (pos_in_page == 0 && (pos+len) >= i_size && | 1080 | (pos_in_page == 0 && (pos+len) >= i_size && |
1087 | end_in_page - pos_in_page != PAGE_CACHE_SIZE)) { | 1081 | end_in_page - pos_in_page != PAGE_CACHE_SIZE)) { |
@@ -1099,9 +1093,6 @@ retry_locked: | |||
1099 | if (r < 0) | 1093 | if (r < 0) |
1100 | goto fail_nosnap; | 1094 | goto fail_nosnap; |
1101 | goto retry_locked; | 1095 | goto retry_locked; |
1102 | |||
1103 | fail: | ||
1104 | up_read(&mdsc->snap_rwsem); | ||
1105 | fail_nosnap: | 1096 | fail_nosnap: |
1106 | unlock_page(page); | 1097 | unlock_page(page); |
1107 | return r; | 1098 | return r; |