generic-2.4: refresh patches
[openwrt/staging/yousong.git] / target / linux / generic-2.4 / patches / 203-hfsplus_fix.patch
1 --- a/fs/hfsplus/super.c
2 +++ b/fs/hfsplus/super.c
3 @@ -240,8 +240,7 @@ int hfsplus_remount(struct super_block *
4 if (!(*flags & MS_RDONLY)) {
5 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;
6
7 - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
8 - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
9 + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
10 printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
11 "running fsck.hfsplus is recommended. leaving read-only.\n");
12 sb->s_flags |= MS_RDONLY;
13 @@ -343,8 +342,7 @@ static int hfsplus_fill_super(struct sup
14 /* Set up operations so we can load metadata */
15 sb->s_op = &hfsplus_sops;
16
17 - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
18 - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
19 + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
20 if (!silent)
21 printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
22 "running fsck.hfsplus is recommended. mounting read-only.\n");