diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2014-03-20 15:29:15 +0900 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2014-03-20 15:29:15 +0900 |
commit | b3a6e2c5448b7d340ff6bea9e99f79989453b1f7 (patch) | |
tree | 03f7e2c45fa76d6f65f46ba1de2b2541ebe3dc7b /patches.tizen/0513-f2fs-fix-i_name-during-f2fs_sync_file.patch | |
parent | 9157e421d4c229d2b45e00b4e36ede3606033ad3 (diff) | |
download | linux-3.10-b3a6e2c5448b7d340ff6bea9e99f79989453b1f7.tar.gz linux-3.10-b3a6e2c5448b7d340ff6bea9e99f79989453b1f7.tar.bz2 linux-3.10-b3a6e2c5448b7d340ff6bea9e99f79989453b1f7.zip |
add Tizen ARM reference patchesdevel/v3.10-ltsi
- Imported 20140319.065243:
author Jonghwa Lee <jonghwa3.lee@samsung.com>
Wed, 19 Mar 2014 00:55:10 +0900 (00:55 +0900)
committer Jonghwa Lee <jonghwa3.lee@samsung.com>
Wed, 19 Mar 2014 01:13:40 +0900 (01:13 +0900)
commit 7464f7e4fed02c10aa619746890bdd96b1b43fc3
Based on Linux 3.10.19 LTS.
Change-Id: I17572de4952319a6815c18379bdbe35b1db0a88c
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'patches.tizen/0513-f2fs-fix-i_name-during-f2fs_sync_file.patch')
-rw-r--r-- | patches.tizen/0513-f2fs-fix-i_name-during-f2fs_sync_file.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/patches.tizen/0513-f2fs-fix-i_name-during-f2fs_sync_file.patch b/patches.tizen/0513-f2fs-fix-i_name-during-f2fs_sync_file.patch new file mode 100644 index 00000000000..73b476ef578 --- /dev/null +++ b/patches.tizen/0513-f2fs-fix-i_name-during-f2fs_sync_file.patch @@ -0,0 +1,48 @@ +From 80b6c76099b2b0b94eeb82493d99efa69c834614 Mon Sep 17 00:00:00 2001 +From: Jaegeuk Kim <jaegeuk.kim@samsung.com> +Date: Mon, 22 Jul 2013 22:12:56 +0900 +Subject: [PATCH 0513/1302] f2fs: fix i_name during f2fs_sync_file + +As similar as the i_pino fix, i_name also should be fixed when i_nlink is 1. + +The errorneous scenario is like this. + +1. touch test1 +2. link test1 test2 +3. unlink test2 +4. fsync test1 + +After this, i_name should be test1. + +CC: Al Viro <viro@ZenIV.linux.org.uk> +Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com> +Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> +--- + fs/f2fs/file.c | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c +index 65ca3b3..c2deb27 100644 +--- a/fs/f2fs/file.c ++++ b/fs/f2fs/file.c +@@ -112,11 +112,13 @@ static int get_parent_ino(struct inode *inode, nid_t *pino) + if (!dentry) + return 0; + +- inode = igrab(dentry->d_parent->d_inode); +- dput(dentry); ++ if (update_dent_inode(inode, &dentry->d_name)) { ++ dput(dentry); ++ return 0; ++ } + +- *pino = inode->i_ino; +- iput(inode); ++ *pino = parent_ino(dentry); ++ dput(dentry); + return 1; + } + +-- +1.8.3.2 + |