X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fopen.c;h=bb98d2fe809f09fa382a9d6224231206e1161962;hb=f0af566da6e9a4a2f5a83c5a70f3d0a772050e21;hp=a99ad09c3197a1f60e4332f86520183cffa50bbd;hpb=e4e0fadcd929138aa82130a1c5f22206d86d7bb2;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; /*