提交 bb8885cc 编写于 作者: C Chris Mason

Btrfs: Fix do_sync_file_range ifdefs (2.6.22)

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 006a58a2
......@@ -961,7 +961,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,
if (err < 0)
num_written = err;
} else if (num_written > 0 && (file->f_flags & O_DIRECT)) {
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
do_sync_file_range(file, start_pos,
start_pos + num_written - 1,
SYNC_FILE_RANGE_WRITE |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册