X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjfs%2Fjfs_mount.c;h=aa871829b761fbaadcbf2756b204e67d8a5eab8e;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=5cdcaac8f6c0fe4a608db002859c948c61af5462;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/jfs/jfs_mount.c b/fs/jfs/jfs_mount.c index 5cdcaac8f..aa871829b 100644 --- a/fs/jfs/jfs_mount.c +++ b/fs/jfs/jfs_mount.c @@ -166,7 +166,7 @@ int jfs_mount(struct super_block *sb) } } else /* Secondary aggregate inode table is not valid */ - sbi->ipaimap2 = 0; + sbi->ipaimap2 = NULL; /* * mount (the only/single) fileset @@ -197,9 +197,6 @@ int jfs_mount(struct super_block *sb) /* * unwind on error */ -//errout42: /* close fileset inode allocation map */ - diUnmount(ipimap, 1); - errout41: /* close fileset inode allocation map inode */ diFreeSpecial(ipimap); @@ -288,6 +285,11 @@ 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; }