aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-02 14:49:33 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commitbb8885cc0aa6b1606143d92c70762b16026016a5 (patch)
tree0681ca871bdbe2067e9fa7a96893a11cb0f6d7dc /fs/btrfs/file.c
parent006a58a25fe8aaa7559be80dcff94d98aee84309 (diff)
Btrfs: Fix do_sync_file_range ifdefs (2.6.22)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index a50507f3056d..c89c3ac4b23b 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -961,7 +961,7 @@ out_nolock:
961 if (err < 0) 961 if (err < 0)
962 num_written = err; 962 num_written = err;
963 } else if (num_written > 0 && (file->f_flags & O_DIRECT)) { 963 } else if (num_written > 0 && (file->f_flags & O_DIRECT)) {
964#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) 964#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
965 do_sync_file_range(file, start_pos, 965 do_sync_file_range(file, start_pos,
966 start_pos + num_written - 1, 966 start_pos + num_written - 1,
967 SYNC_FILE_RANGE_WRITE | 967 SYNC_FILE_RANGE_WRITE |