]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
f2fs: cover cp_file information with ilock
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 28 May 2013 03:25:47 +0000 (12:25 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 28 May 2013 06:03:06 +0000 (15:03 +0900)
commit83d5d6f66b375f21bee4c2e17178f7c073a66301
tree1373f4abee6f281933f9e7fee9dfa5cb3d831f7c
parentafc3eda2a897b402e59f42f22eb89bba52297dd3
f2fs: cover cp_file information with ilock

If a file is linked with other files, it should be checkpointed at every fsync
calls.
For this, we use set_cp_file() with FADVISE_CP_BIT, but previously we didn't
cover the flag by the global lock.
This patch fixes that the inode page stores this correctly.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/dir.c
fs/f2fs/namei.c