rename the generic fsync implementations
We don't name our generic fsync implementations very well currently. The no-op implementation for in-memory filesystems currently is called simple_sync_file which doesn't make too much sense to start with, the the generic one for simple filesystems is called simple_fsync which can lead to some confusion. This patch renames the generic file fsync method to generic_file_fsync to match the other generic_file_* routines it is supposed to be used with, and the no-op implementation to noop_fsync to make it obvious what to expect. In addition add some documentation for both methods. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- arch/powerpc/platforms/cell/spufs/inode.c 1 addition, 1 deletionarch/powerpc/platforms/cell/spufs/inode.c
- fs/adfs/dir.c 1 addition, 1 deletionfs/adfs/dir.c
- fs/adfs/file.c 1 addition, 1 deletionfs/adfs/file.c
- fs/bfs/dir.c 1 addition, 1 deletionfs/bfs/dir.c
- fs/ext2/file.c 1 addition, 1 deletionfs/ext2/file.c
- fs/ext4/fsync.c 1 addition, 1 deletionfs/ext4/fsync.c
- fs/fat/file.c 1 addition, 1 deletionfs/fat/file.c
- fs/hugetlbfs/inode.c 1 addition, 1 deletionfs/hugetlbfs/inode.c
- fs/libfs.c 21 additions, 9 deletionsfs/libfs.c
- fs/minix/dir.c 1 addition, 1 deletionfs/minix/dir.c
- fs/minix/file.c 1 addition, 1 deletionfs/minix/file.c
- fs/omfs/file.c 1 addition, 1 deletionfs/omfs/file.c
- fs/qnx4/dir.c 1 addition, 1 deletionfs/qnx4/dir.c
- fs/ramfs/file-mmu.c 1 addition, 1 deletionfs/ramfs/file-mmu.c
- fs/ramfs/file-nommu.c 1 addition, 1 deletionfs/ramfs/file-nommu.c
- fs/sysv/dir.c 1 addition, 1 deletionfs/sysv/dir.c
- fs/sysv/file.c 1 addition, 1 deletionfs/sysv/file.c
- fs/udf/dir.c 1 addition, 1 deletionfs/udf/dir.c
- fs/udf/file.c 1 addition, 1 deletionfs/udf/file.c
- fs/ufs/dir.c 1 addition, 1 deletionfs/ufs/dir.c
Loading
Please register or sign in to comment