提交 b82ba780 编写于 作者: E Evgeniy Polyakov 提交者: Greg Kroah-Hartman

Staging: Pohmelfs: Use wait_on_page_timeout when waiting for remote directory...

Staging: Pohmelfs: Use wait_on_page_timeout when waiting for remote directory sync instead of hardcoded 25 seconds.
Signed-off-by: NEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d1ec6440
...@@ -328,7 +328,7 @@ static int pohmelfs_sync_remote_dir(struct pohmelfs_inode *pi) ...@@ -328,7 +328,7 @@ static int pohmelfs_sync_remote_dir(struct pohmelfs_inode *pi)
{ {
struct inode *inode = &pi->vfs_inode; struct inode *inode = &pi->vfs_inode;
struct pohmelfs_sb *psb = POHMELFS_SB(inode->i_sb); struct pohmelfs_sb *psb = POHMELFS_SB(inode->i_sb);
long ret = msecs_to_jiffies(25000); long ret = psb->wait_on_page_timeout;
int err; int err;
dprintk("%s: dir: %llu, state: %lx: remote_synced: %d.\n", dprintk("%s: dir: %llu, state: %lx: remote_synced: %d.\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册