ext2: Implement freezing
authorJan Kara <jack@suse.cz>
Tue, 12 Jun 2012 14:20:46 +0000 (16:20 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 31 Jul 2012 05:45:53 +0000 (09:45 +0400)
commit1e8b212fe5dcee9d3dbb152d235f3c33458fb26e
treec21036f86f455c6289704b35c58c8d01d7821f12
parentb2b5ef5c8e89f19b68c174bf246f3ca212dbf0bc
ext2: Implement freezing

The only missing piece to make freezing work reliably with ext2 is to
stop iput() of unlinked inode from deleting the inode on frozen filesystem.
So add a necessary protection to ext2_evict_inode().

We also provide appropriate ->freeze_fs and ->unfreeze_fs functions.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ext2/inode.c
fs/ext2/super.c