Re: [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Jaegeuk Kim
2012-12-14 (금), 14:41 +0900, Namjae Jeon: > 2012/12/14, Jaegeuk Kim : > > Hi, > > > >> diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c > >> index a60f042..5e48bac 100644 > >> --- a/fs/f2fs/hash.c > >> +++ b/fs/f2fs/hash.c > >> @@ -76,6 +76,10 @@ f2fs_hash_t f2fs_dentry_hash(const char *name, int > >>

Re: [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Namjae Jeon
2012/12/14, Jaegeuk Kim : > Hi, > >> diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c >> index a60f042..5e48bac 100644 >> --- a/fs/f2fs/hash.c >> +++ b/fs/f2fs/hash.c >> @@ -76,6 +76,10 @@ f2fs_hash_t f2fs_dentry_hash(const char *name, int >> len) >> const char *p; >> __u32 in[8], buf[4]; >>

Re: [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Jaegeuk Kim
Hi, > diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c > index a60f042..5e48bac 100644 > --- a/fs/f2fs/hash.c > +++ b/fs/f2fs/hash.c > @@ -76,6 +76,10 @@ f2fs_hash_t f2fs_dentry_hash(const char *name, int len) > const char *p; > __u32 in[8], buf[4]; > > + if ((len <= 2) && (name[0]

RE: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread 이창만
'; linux- > ker...@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to > retrieve correct parent inode number > > > > > -Original Message- > > From: Namjae Jeon [mailto:linkinj...@gmail.com] &

RE: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread 이창만
ge.net; linux-fsde...@vger.kernel.org > Subject: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to > retrieve correct parent inode number > > From: Namjae Jeon > > Test Case: > [NFS Client] > ls -lR . > > [NFS Server] > while [ 1 ] > do > echo 3 &

[PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Namjae Jeon
From: Namjae Jeon 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

[PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com 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

RE: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread 이창만
Subject: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number From: Namjae Jeon namjae.j...@samsung.com Test Case: [NFS Client] ls -lR . [NFS Server] while [ 1 ] do echo 3 /proc/sys/vm/drop_caches done Error on NFS Client

RE: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread 이창만
...@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number -Original Message- From: Namjae Jeon [mailto:linkinj...@gmail.com] Sent: Thursday, December 13, 2012 11:44 PM To: jaegeuk

Re: [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Jaegeuk Kim
Hi, diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c index a60f042..5e48bac 100644 --- a/fs/f2fs/hash.c +++ b/fs/f2fs/hash.c @@ -76,6 +76,10 @@ f2fs_hash_t f2fs_dentry_hash(const char *name, int len) const char *p; __u32 in[8], buf[4]; + if ((len = 2) (name[0] == '.') +

Re: [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Namjae Jeon
2012/12/14, Jaegeuk Kim jaegeuk@samsung.com: Hi, diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c index a60f042..5e48bac 100644 --- a/fs/f2fs/hash.c +++ b/fs/f2fs/hash.c @@ -76,6 +76,10 @@ f2fs_hash_t f2fs_dentry_hash(const char *name, int len) const char *p; __u32 in[8],

Re: [PATCH v2] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-13 Thread Jaegeuk Kim
2012-12-14 (금), 14:41 +0900, Namjae Jeon: 2012/12/14, Jaegeuk Kim jaegeuk@samsung.com: Hi, diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c index a60f042..5e48bac 100644 --- a/fs/f2fs/hash.c +++ b/fs/f2fs/hash.c @@ -76,6 +76,10 @@ f2fs_hash_t f2fs_dentry_hash(const char *name, int