]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number
authorNamjae Jeon <namjae.jeon@samsung.com>
Thu, 13 Dec 2012 14:44:11 +0000 (23:44 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 26 Dec 2012 01:39:52 +0000 (10:39 +0900)
commit30959fa170c4fa2345712835d6bc665b6026566b
tree3e221e1dda048aa5c087a7d88e9ba93e987be748
parent7d3228e87863c0b93bac766b59eca7c48d68029b
f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

Test Case:
[NFS Client]
ls -lR .

[NFS Server]
while [ 1 ]
do
echo 3 > /proc/sys/vm/drop_caches
done

Error on NFS Client: "No such file or directory"

When cache is dropped at the server, it results in lookup failure at the
NFS client due to non-connection with the parent. The default path is it
initiates a lookup by calculating the hash value for the name, even though
the hash values stored on the disk for "." and ".." is maintained as zero,
which results in failure from find_in_block due to not matching HASH values.
Fix up, by using the correct hashing values for these entries.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/dir.c
fs/f2fs/hash.c