diff options
Diffstat (limited to 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index a2b9a47235c5..f0d4b16873e8 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
@@ -112,7 +112,7 @@ generic_file_llseek_size(struct file *file, loff_t offset, int whence, | |||
112 | * In the generic case the entire file is data, so as long as | 112 | * In the generic case the entire file is data, so as long as |
113 | * offset isn't at the end of the file then the offset is data. | 113 | * offset isn't at the end of the file then the offset is data. |
114 | */ | 114 | */ |
115 | if (offset >= eof) | 115 | if ((unsigned long long)offset >= eof) |
116 | return -ENXIO; | 116 | return -ENXIO; |
117 | break; | 117 | break; |
118 | case SEEK_HOLE: | 118 | case SEEK_HOLE: |
@@ -120,7 +120,7 @@ generic_file_llseek_size(struct file *file, loff_t offset, int whence, | |||
120 | * There is a virtual hole at the end of the file, so as long as | 120 | * There is a virtual hole at the end of the file, so as long as |
121 | * offset isn't i_size or larger, return i_size. | 121 | * offset isn't i_size or larger, return i_size. |
122 | */ | 122 | */ |
123 | if (offset >= eof) | 123 | if ((unsigned long long)offset >= eof) |
124 | return -ENXIO; | 124 | return -ENXIO; |
125 | offset = eof; | 125 | offset = eof; |
126 | break; | 126 | break; |