VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2014-10-31 01:22:04 -0400 committer: Al Viro <viro@zeniv.linux.org.uk> 2014-11-19 13:01:25 -0500 commit: b583043e99bc6d91e98fae32bd9eff6a5958240a parent: 30e46aba8f1010b03178f04c0c56be299c063df2
Commit Summary:
kill f_dentry uses
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/sync.c b/fs/sync.c
index bdc729d80e5e..01d9f18a70b5 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -154,7 +154,7 @@ SYSCALL_DEFINE1(syncfs, int, fd)
 
 	if (!f.file)
 		return -EBADF;
-	sb = f.file->f_dentry->d_sb;
+	sb = f.file->f_path.dentry->d_sb;
 
 	down_read(&sb->s_umount);
 	ret = sync_filesystem(sb);