diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-09-20 18:19:06 +0900 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-23 09:24:39 +0900 |
commit | 5beb6e0b2008386571fd342d0a4a14f5c8c0baf8 (patch) | |
tree | b5b86e48c3fe5041ce495ca9bee2e5f93f788293 /fs/nilfs2/segment.c | |
parent | c05dbfc2609993ccc067879579e2a7726e12b3f1 (diff) | |
download | kernel_samsung_espresso10-5beb6e0b2008386571fd342d0a4a14f5c8c0baf8.zip kernel_samsung_espresso10-5beb6e0b2008386571fd342d0a4a14f5c8c0baf8.tar.gz kernel_samsung_espresso10-5beb6e0b2008386571fd342d0a4a14f5c8c0baf8.tar.bz2 |
nilfs2: add bdev freeze/thaw support
Nilfs hasn't supported the freeze/thaw feature because it didn't work
due to the peculiar design that multiple super block instances could
be allocated for a device. This limitation was removed by the patch
"nilfs2: do not allocate multiple super block instances for a device".
So now this adds the freeze/thaw support to nilfs.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r-- | fs/nilfs2/segment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 56350bf..172ad42 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c @@ -191,6 +191,8 @@ int nilfs_transaction_begin(struct super_block *sb, if (ret > 0) return 0; + vfs_check_frozen(sb, SB_FREEZE_WRITE); + sbi = NILFS_SB(sb); nilfs = sbi->s_nilfs; down_read(&nilfs->ns_segctor_sem); |