Skip to content

Commit

Permalink
[PATCH] fix fsync(dir) return value for ram-based filesystems
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Jun 25, 2005
1 parent 6f9becc commit 8ae0b77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/libfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 8ae0b77

Please sign in to comment.