Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Hugh Dickins and committed by
Linus Torvalds
8ae0b778 6f9beccb

+1
+1
fs/libfs.c
··· 183 183 .llseek = dcache_dir_lseek, 184 184 .read = generic_read_dir, 185 185 .readdir = dcache_readdir, 186 + .fsync = simple_sync_file, 186 187 }; 187 188 188 189 struct inode_operations simple_dir_inode_operations = {