projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f9becc
)
[PATCH] fix fsync(dir) return value for ram-based filesystems
author
Hugh Dickins
<hugh@veritas.com>
Sat, 25 Jun 2005 21:55:41 +0000
(14:55 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:38 +0000
(16:24 -0700)
Any filesystem which is using simple_dir_operations will retunr -EINVAL for
fsync() on a directory. Make it return zero instead.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/libfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/libfs.c
b/fs/libfs.c
index 5025563e7379675b7df2834427aabb0800f4b740..58101dff2c66de94fc4fa82bf13696e9d9b8d665 100644
(file)
--- a/
fs/libfs.c
+++ b/
fs/libfs.c
@@
-183,6
+183,7
@@
struct file_operations simple_dir_operations = {
.llseek = dcache_dir_lseek,
.read = generic_read_dir,
.readdir = dcache_readdir,
+ .fsync = simple_sync_file,
};
struct inode_operations simple_dir_inode_operations = {