Whamcloud - gitweb
* Removed the (new) tcp zero-copy patches
[fs/lustre-release.git] / lustre / kernel_patches / patches / statfs64-cast-unsigned-2.4-rhel.patch
1 Index: linux-2.4.21/fs/open.c
2 ===================================================================
3 --- linux-2.4.21.orig/fs/open.c 2005-05-04 16:09:11.702098704 -0400
4 +++ linux-2.4.21/fs/open.c      2005-05-04 16:17:31.597103112 -0400
5 @@ -92,15 +92,15 @@
6                 if (retval)
7                         return retval;
8                 /* Stuff the 32 bit values into the 64 bit struct */
9 -               buf->f_type = st.f_type;
10 -               buf->f_bsize = st.f_bsize;
11 -               buf->f_blocks = st.f_blocks;
12 -               buf->f_bfree = st.f_bfree;
13 -               buf->f_bavail = st.f_bavail;
14 -               buf->f_files = st.f_files;
15 -               buf->f_ffree = st.f_ffree;
16 +               buf->f_type = (unsigned long) st.f_type;
17 +               buf->f_bsize = (unsigned long) st.f_bsize;
18 +               buf->f_blocks = (unsigned long) st.f_blocks;
19 +               buf->f_bfree = (unsigned long) st.f_bfree;
20 +               buf->f_bavail = (unsigned long) st.f_bavail;
21 +               buf->f_files = (unsigned long) st.f_files;
22 +               buf->f_ffree = (unsigned long) st.f_ffree;
23                 buf->f_fsid = st.f_fsid;
24 -               buf->f_namelen = st.f_namelen;
25 +               buf->f_namelen = (unsigned long) st.f_namelen;
26                 memset(buf->f_spare, 0, sizeof(buf->f_spare));
27         }
28         return 0;