参照元†
- struct address_space *mapping
- struct writeback_control *wbc
返り値†
- writepages に設定される関数
- 検索方法
$ egrep -nr '\.writepages[\s]*' fs
- 結果
fs/afs/file.c:60: .writepages = afs_writepages,
fs/block_dev.c:1470: .writepages = generic_writepages,
fs/btrfs/disk-io.c:779: .writepages = btree_writepages,
fs/btrfs/inode.c:6005: .writepages = btrfs_writepages,
fs/cifs/file.c:2350: .writepages = cifs_writepages,
fs/cifs/file.c:2366: .writepages = cifs_writepages,
fs/exofs/inode.c:760: .writepages = exofs_writepages,
fs/ext2/inode.c:821: .writepages = ext2_writepages,
fs/ext2/inode.c:841: .writepages = ext2_writepages,
fs/ext4/inode.c:3894: .writepages = ext4_da_writepages,
fs/fat/inode.c:216: .writepages = fat_writepages,
fs/gfs2/aops.c:1118: .writepages = gfs2_writeback_writepages,
fs/gfs2/aops.c:1152: .writepages = gfs2_jdata_writepages,
fs/hfs/inode.c:144: .writepages = hfs_writepages,
fs/hfsplus/inode.c:137: .writepages = hfsplus_writepages,
fs/jfs/inode.c:323: .writepages = jfs_writepages,
fs/nfs/file.c:522: .writepages = nfs_writepages,
fs/nilfs2/inode.c:246: .writepages = nilfs_writepages,
fs/omfs/file.c:344: .writepages = omfs_writepages,
fs/xfs/linux-2.6/xfs_aops.c:1551: .writepages = xfs_vm_writepages,
int do_writepages(struct address_space *mapping, struct writeback_control *wbc)
{
int ret;
if (wbc->nr_to_write <= 0)
return 0;
if (mapping->a_ops->writepages)
ret = mapping->a_ops->writepages(mapping, wbc);
else
ret = generic_writepages(mapping, wbc);
return ret;
}
コメント†