Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\iomap\buffered-io.c Create Date:2022-07-28 20:31:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:iomap_unshare_actor

Proto:static loff_t iomap_unshare_actor(struct inode *inode, loff_t pos, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)

Type:loff_t

Parameter:

TypeParameterName
struct inode *inode
loff_tpos
loff_tlength
void *data
struct iomap *iomap
struct iomap *srcmap
902  status = 0
903  written = 0
906  If Not ( flags for mapping & IOMAP_F_SHARED) Then Return length
909  If type of mapping == blocks allocated, need allocation || type of mapping == locks allocated at @addr in unwritten state Then Return length
912  Do
913  offset = offset_in_page(pos)
914  bytes = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - offset, length)
917  status = iomap_write_begin(inode, pos, bytes, IOMAP_WRITE_F_UNSHARE, & page, iomap, srcmap)
919  If Value for the false possibility is greater at compile time(status) Then Return status
922  status = iomap_write_end(inode, pos, bytes, bytes, page, iomap, srcmap)
925  If WARN_ON_ONCE(status == 0) Then Return -EIO
927  Return status
930  cond_resched()
932  pos += status
933  written += status
934  length -= status
936  alance_dirty_pages_ratelimited - balance dirty memory state*@mapping: address_space which was dirtied* Processes which are dirtying memory should call in here once for each page* which was newly dirtied. The function will periodically check the system's
937  When length cycle
939  Return written