]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: add un/freeze_fs into super_operations
authorChangman Lee <cm224.lee@samsung.com>
Tue, 29 Jan 2013 09:30:07 +0000 (18:30 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 11 Feb 2013 22:15:00 +0000 (07:15 +0900)
commitd6212a5f18c8f9f9cc884070a96e11907711217f
treed1c579ecdeb7c2ffc94bffbe0b51af4d2e3c49f3
parenta2617dc6863b21a8109c199ab533b3dbfe178f27
f2fs: add un/freeze_fs into super_operations

This patch supports ioctl FIFREEZE and FITHAW to snapshot filesystem.
Before calling f2fs_freeze, all writers would be suspended and sync_fs
would be completed. So no f2fs has to do something.
Just background gc operation should be skipped due to generate dirty
nodes and data until unfreeze.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/gc.c
fs/f2fs/inode.c
fs/f2fs/super.c