mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[PATCH] fix fsync(dir) return value for ram-based filesystems
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>
This commit is contained in:
parent
6f9beccb95
commit
8ae0b77811
1 changed files with 1 additions and 0 deletions
|
@ -183,6 +183,7 @@ struct file_operations simple_dir_operations = {
|
||||||
.llseek = dcache_dir_lseek,
|
.llseek = dcache_dir_lseek,
|
||||||
.read = generic_read_dir,
|
.read = generic_read_dir,
|
||||||
.readdir = dcache_readdir,
|
.readdir = dcache_readdir,
|
||||||
|
.fsync = simple_sync_file,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct inode_operations simple_dir_inode_operations = {
|
struct inode_operations simple_dir_inode_operations = {
|
||||||
|
|
Loading…
Reference in a new issue