diff options
author | Jaegeuk Kim | 2013-05-28 12:25:47 +0900 |
---|---|---|
committer | Jaegeuk Kim | 2013-05-28 15:03:06 +0900 |
commit | 83d5d6f66b375f21bee4c2e17178f7c073a66301 (patch) | |
tree | 1373f4abee6f281933f9e7fee9dfa5cb3d831f7c /fs/f2fs/namei.c | |
parent | afc3eda2a897b402e59f42f22eb89bba52297dd3 (diff) |
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>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r-- | fs/f2fs/namei.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index efe0a127cb76..1fe150276fad 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -181,12 +181,6 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir, if (err) goto out; - /* - * This file should be checkpointed during fsync. - * We lost i_pino from now on. - */ - set_cp_file(inode); - d_instantiate(dentry, inode); return 0; out: |