projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
006a58a
)
Btrfs: Fix do_sync_file_range ifdefs (2.6.22)
author
Chris Mason
<chris.mason@oracle.com>
Fri, 2 May 2008 18:49:33 +0000
(14:49 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000
(11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/file.c
b/fs/btrfs/file.c
index a50507f3056ded221500b6b3c6ec571bb5505e16..c89c3ac4b23b7d081d7a2cac636c5f1b62868b84 100644
(file)
--- a/
fs/btrfs/file.c
+++ b/
fs/btrfs/file.c
@@
-961,7
+961,7
@@
out_nolock:
if (err < 0)
num_written = err;
} else if (num_written > 0 && (file->f_flags & O_DIRECT)) {
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,2
3
)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,2
2
)
do_sync_file_range(file, start_pos,
start_pos + num_written - 1,
SYNC_FILE_RANGE_WRITE |