diff options
author | Hugh Dickins <hugh@veritas.com> | 2005-06-25 21:55:41 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 23:24:38 (GMT) |
commit | 8ae0b77811d97552b3b3c745e97de18849583bf7 (patch) | |
tree | 7b249634919ce008c081d30ddecbdc278f6b0239 /fs | |
parent | 6f9beccb95a47a15e446f64fbb7041dc6edce4d9 (diff) | |
download | linux-fsl-qoriq-8ae0b77811d97552b3b3c745e97de18849583bf7.tar.xz |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/libfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 = { |