diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index a46300c4753a..4423a91206a1 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -272,6 +272,11 @@ static int btrfs_fill_super(struct super_block * sb, void * data, int silent) | |||
272 | 272 | ||
273 | sb->s_root = root_dentry; | 273 | sb->s_root = root_dentry; |
274 | btrfs_transaction_queue_work(tree_root, HZ * 30); | 274 | btrfs_transaction_queue_work(tree_root, HZ * 30); |
275 | |||
276 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) | ||
277 | save_mount_options(sb, data); | ||
278 | #endif | ||
279 | |||
275 | return 0; | 280 | return 0; |
276 | 281 | ||
277 | fail_close: | 282 | fail_close: |
@@ -462,9 +467,13 @@ static struct super_operations btrfs_super_ops = { | |||
462 | .delete_inode = btrfs_delete_inode, | 467 | .delete_inode = btrfs_delete_inode, |
463 | .put_inode = btrfs_put_inode, | 468 | .put_inode = btrfs_put_inode, |
464 | .put_super = btrfs_put_super, | 469 | .put_super = btrfs_put_super, |
465 | .read_inode = btrfs_read_locked_inode, | ||
466 | .write_super = btrfs_write_super, | 470 | .write_super = btrfs_write_super, |
467 | .sync_fs = btrfs_sync_fs, | 471 | .sync_fs = btrfs_sync_fs, |
472 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) | ||
473 | .read_inode = btrfs_read_locked_inode, | ||
474 | #else | ||
475 | .show_options = generic_show_options, | ||
476 | #endif | ||
468 | .write_inode = btrfs_write_inode, | 477 | .write_inode = btrfs_write_inode, |
469 | .dirty_inode = btrfs_dirty_inode, | 478 | .dirty_inode = btrfs_dirty_inode, |
470 | .alloc_inode = btrfs_alloc_inode, | 479 | .alloc_inode = btrfs_alloc_inode, |