projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1eb88
)
GFS2: Direct IO write at end of file error
author
Bob Peterson
<rpeterso@redhat.com>
Thu, 11 Sep 2008 19:35:37 +0000
(15:35 -0400)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Mon, 15 Sep 2008 09:31:54 +0000
(10:31 +0100)
This patch fixes a problem whereby a direct_io write doesn't fall
back to buffered write properly at end of file.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_address.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/ops_address.c
b/fs/gfs2/ops_address.c
index e64a1b04117ad5b27bb5fc1efd98ffe6295056a8..ae7126aeb447ee96867c67219fcb42fa9006372e 100644
(file)
--- a/
fs/gfs2/ops_address.c
+++ b/
fs/gfs2/ops_address.c
@@
-975,7
+975,7
@@
static int gfs2_ok_for_dio(struct gfs2_inode *ip, int rw, loff_t offset)
if (gfs2_is_stuffed(ip))
return 0;
- if (offset > i_size_read(&ip->i_inode))
+ if (offset >
=
i_size_read(&ip->i_inode))
return 0;
return 1;
}