From: Evgeniy Polyakov Date: Fri, 27 Mar 2009 12:04:26 +0000 (+0300) Subject: Staging: Pohmelfs: Use wait_on_page_timeout when waiting for remote directory sync... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b82ba780a769a2735c86b5197457972a7df0af08;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git Staging: Pohmelfs: Use wait_on_page_timeout when waiting for remote directory sync instead of hardcoded 25 seconds. Signed-off-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/pohmelfs/dir.c b/drivers/staging/pohmelfs/dir.c index 10d21a49d28..b5799842fb8 100644 --- a/drivers/staging/pohmelfs/dir.c +++ b/drivers/staging/pohmelfs/dir.c @@ -328,7 +328,7 @@ static int pohmelfs_sync_remote_dir(struct pohmelfs_inode *pi) { struct inode *inode = &pi->vfs_inode; struct pohmelfs_sb *psb = POHMELFS_SB(inode->i_sb); - long ret = msecs_to_jiffies(25000); + long ret = psb->wait_on_page_timeout; int err; dprintk("%s: dir: %llu, state: %lx: remote_synced: %d.\n",