git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s390/qeth: free netdevice when removing a card
[pandora-kernel.git]
/
fs
/
read_write.c
diff --git
a/fs/read_write.c
b/fs/read_write.c
index
5ad4248
..
3649bfd
100644
(file)
--- a/
fs/read_write.c
+++ b/
fs/read_write.c
@@
-99,7
+99,7
@@
generic_file_llseek_size(struct file *file, loff_t offset, int origin,
* In the generic case the entire file is data, so as long as
* offset isn't at the end of the file then the offset is data.
*/
* In the generic case the entire file is data, so as long as
* offset isn't at the end of the file then the offset is data.
*/
- if (offset >= i_size_read(inode))
+ if (
(unsigned long long)
offset >= i_size_read(inode))
return -ENXIO;
break;
case SEEK_HOLE:
return -ENXIO;
break;
case SEEK_HOLE:
@@
-107,7
+107,7
@@
generic_file_llseek_size(struct file *file, loff_t offset, int origin,
* There is a virtual hole at the end of the file, so as long as
* offset isn't i_size or larger, return i_size.
*/
* There is a virtual hole at the end of the file, so as long as
* offset isn't i_size or larger, return i_size.
*/
- if (offset >= i_size_read(inode))
+ if (
(unsigned long long)
offset >= i_size_read(inode))
return -ENXIO;
offset = i_size_read(inode);
break;
return -ENXIO;
offset = i_size_read(inode);
break;