History

iomap: ignore non-shared or non-data blocks in xfs_file_dirty

xfs_file_dirty is used to unshare reflink blocks. Rename the function to xfs_file_unshare to better document that purpose, and skip iomaps that are not shared and don't need zeroing. This will allow to simplify the caller.

Christoph Hellwig committed 7 years ago

Commit 3590c4d1 parent dcd61583 files · +13 −6Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/iomap.h+1−1
@@ -168,7 +168,7 @@ int iomap_migrate_page(struct address_space *mapping, struct page *newpage, · 167 unmodified lines
168168 #else
169169 #define iomap_migrate_page NULL
170170 #endif
171−int iomap_file_dirty(struct inode *inode, loff_t pos, loff_t len,
171+int iomap_file_unshare(struct inode *inode, loff_t pos, loff_t len,
172172 const struct iomap_ops *ops);
173173 int iomap_zero_range(struct inode *inode, loff_t pos, loff_t len,
174174 bool *did_zero, const struct iomap_ops *ops);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t