Commit f6ff7fe5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] nfs-32bit-statfs-fix warning fix

With CONFIG_LBD=n:

fs/open.c: In function `vfs_statfs_native':
fs/open.c:67: warning: comparison is always true due to limited range of data type
fs/open.c:70: warning: comparison is always true due to limited range of data type
parent 678736c9
......@@ -64,10 +64,10 @@ static int vfs_statfs_native(struct super_block *sb, struct statfs *buf)
* f_files and f_ffree may be -1; it's okay to stuff
* that into 32 bits
*/
if (st.f_files != 0xffffffffffffffffULL &&
if (st.f_files != -1 &&
(st.f_files & 0xffffffff00000000ULL))
return -EOVERFLOW;
if (st.f_ffree != 0xffffffffffffffffULL &&
if (st.f_ffree != -1 &&
(st.f_ffree & 0xffffffff00000000ULL))
return -EOVERFLOW;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment