add some gcc 4.0 fixes
[openwrt.git] / package / linux / kernel-patches / 207-hfsplus-fix
1 diff -urN linux-2.4.30.old/fs/hfsplus/super.c linux-2.4.30.dev/fs/hfsplus/super.c
2 --- linux-2.4.30.old/fs/hfsplus/super.c 2003-08-25 13:44:43.000000000 +0200
3 +++ linux-2.4.30.dev/fs/hfsplus/super.c 2005-04-27 19:54:40.000000000 +0200
4 @@ -240,8 +240,7 @@
5 if (!(*flags & MS_RDONLY)) {
6 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;
7
8 - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
9 - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
10 + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
11 printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
12 "running fsck.hfsplus is recommended. leaving read-only.\n");
13 sb->s_flags |= MS_RDONLY;
14 @@ -343,8 +342,7 @@
15 /* Set up operations so we can load metadata */
16 sb->s_op = &hfsplus_sops;
17
18 - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
19 - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
20 + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
21 if (!silent)
22 printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
23 "running fsck.hfsplus is recommended. mounting read-only.\n");
This page took 0.05346 seconds and 5 git commands to generate.