X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fopen.c;h=bb98d2fe809f09fa382a9d6224231206e1161962;hb=84eea842886ac35020be6043e04748ed22014359;hp=a99ad09c3197a1f60e4332f86520183cffa50bbd;hpb=666484f0250db2e016948d63b3ef33e202e3b8d0;p=linux-2.6 diff --git a/fs/open.c b/fs/open.c index a99ad09c31..bb98d2fe80 100644 --- a/fs/open.c +++ b/fs/open.c @@ -64,7 +64,8 @@ static int vfs_statfs_native(struct dentry *dentry, struct statfs *buf) memcpy(buf, &st, sizeof(st)); else { if (sizeof buf->f_blocks == 4) { - if ((st.f_blocks | st.f_bfree | st.f_bavail) & + if ((st.f_blocks | st.f_bfree | st.f_bavail | + st.f_bsize | st.f_frsize) & 0xffffffff00000000ULL) return -EOVERFLOW; /*