Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / fs / jfs / jfs_mount.c
index aa87182..032d111 100644 (file)
@@ -285,11 +285,6 @@ int jfs_mount_rw(struct super_block *sb, int remount)
         */
        logMOUNT(sb);
 
-       /*
-        * Set page cache allocation policy
-        */
-       mapping_set_gfp_mask(sb->s_bdev->bd_inode->i_mapping, GFP_NOFS);
-
        return rc;
 }
 
@@ -324,7 +319,7 @@ static int chkSuper(struct super_block *sb)
         */
        /* validate fs signature */
        if (strncmp(j_sb->s_magic, JFS_MAGIC, 4) ||
-           j_sb->s_version > cpu_to_le32(JFS_VERSION)) {
+           le32_to_cpu(j_sb->s_version) > JFS_VERSION) {
                rc = -EINVAL;
                goto out;
        }