aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c12
2 files changed, 1 insertions, 13 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index e28800a9f2b5..1418b916fc27 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -1501,7 +1501,7 @@ xfs_setsize_buftarg_early(
1501 struct block_device *bdev) 1501 struct block_device *bdev)
1502{ 1502{
1503 return xfs_setsize_buftarg_flags(btp, 1503 return xfs_setsize_buftarg_flags(btp,
1504 PAGE_CACHE_SIZE, bdev_hardsect_size(bdev), 0); 1504 PAGE_CACHE_SIZE, bdev_logical_block_size(bdev), 0);
1505} 1505}
1506 1506
1507int 1507int
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 36fb8a657c55..2e09efbca8db 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -1121,15 +1121,6 @@ xfs_fs_put_super(
1121 kfree(mp); 1121 kfree(mp);
1122} 1122}
1123 1123
1124STATIC void
1125xfs_fs_write_super(
1126 struct super_block *sb)
1127{
1128 if (!(sb->s_flags & MS_RDONLY))
1129 xfs_sync_fsdata(XFS_M(sb), 0);
1130 sb->s_dirt = 0;
1131}
1132
1133STATIC int 1124STATIC int
1134xfs_fs_sync_super( 1125xfs_fs_sync_super(
1135 struct super_block *sb, 1126 struct super_block *sb,
@@ -1154,7 +1145,6 @@ xfs_fs_sync_super(
1154 error = xfs_quiesce_data(mp); 1145 error = xfs_quiesce_data(mp);
1155 else 1146 else
1156 error = xfs_sync_fsdata(mp, 0); 1147 error = xfs_sync_fsdata(mp, 0);
1157 sb->s_dirt = 0;
1158 1148
1159 if (unlikely(laptop_mode)) { 1149 if (unlikely(laptop_mode)) {
1160 int prev_sync_seq = mp->m_sync_seq; 1150 int prev_sync_seq = mp->m_sync_seq;
@@ -1461,7 +1451,6 @@ xfs_fs_fill_super(
1461 1451
1462 XFS_SEND_MOUNT(mp, DM_RIGHT_NULL, mtpt, mp->m_fsname); 1452 XFS_SEND_MOUNT(mp, DM_RIGHT_NULL, mtpt, mp->m_fsname);
1463 1453
1464 sb->s_dirt = 1;
1465 sb->s_magic = XFS_SB_MAGIC; 1454 sb->s_magic = XFS_SB_MAGIC;
1466 sb->s_blocksize = mp->m_sb.sb_blocksize; 1455 sb->s_blocksize = mp->m_sb.sb_blocksize;
1467 sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1; 1456 sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1;
@@ -1549,7 +1538,6 @@ static struct super_operations xfs_super_operations = {
1549 .write_inode = xfs_fs_write_inode, 1538 .write_inode = xfs_fs_write_inode,
1550 .clear_inode = xfs_fs_clear_inode, 1539 .clear_inode = xfs_fs_clear_inode,
1551 .put_super = xfs_fs_put_super, 1540 .put_super = xfs_fs_put_super,
1552 .write_super = xfs_fs_write_super,
1553 .sync_fs = xfs_fs_sync_super, 1541 .sync_fs = xfs_fs_sync_super,
1554 .freeze_fs = xfs_fs_freeze, 1542 .freeze_fs = xfs_fs_freeze,
1555 .statfs = xfs_fs_statfs, 1543 .statfs = xfs_fs_statfs,