瀏覽代碼

btrfs: get rid of f_dentry use

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 10 年之前
父節點
當前提交
ddb52f4fd2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/btrfs/ioctl.c

+ 1 - 1
fs/btrfs/ioctl.c

@@ -5296,7 +5296,7 @@ long btrfs_ioctl(struct file *file, unsigned int
 		ret = btrfs_start_delalloc_roots(root->fs_info, 0, -1);
 		ret = btrfs_start_delalloc_roots(root->fs_info, 0, -1);
 		if (ret)
 		if (ret)
 			return ret;
 			return ret;
-		ret = btrfs_sync_fs(file->f_dentry->d_sb, 1);
+		ret = btrfs_sync_fs(file_inode(file)->i_sb, 1);
 		/*
 		/*
 		 * The transaction thread may want to do more work,
 		 * The transaction thread may want to do more work,
 		 * namely it pokes the cleaner ktread that will start
 		 * namely it pokes the cleaner ktread that will start