diff options
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index a066cf1766ab..add06b4e9a63 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include "xfs_utils.h" | 41 | #include "xfs_utils.h" |
42 | #include "xfs_iomap.h" | 42 | #include "xfs_iomap.h" |
43 | #include "xfs_trace.h" | 43 | #include "xfs_trace.h" |
44 | #include "xfs_icache.h" | ||
44 | 45 | ||
45 | 46 | ||
46 | #define XFS_WRITEIO_ALIGN(mp,off) (((off) >> mp->m_writeio_log) \ | 47 | #define XFS_WRITEIO_ALIGN(mp,off) (((off) >> mp->m_writeio_log) \ |
@@ -450,6 +451,13 @@ retry: | |||
450 | if (!(imap[0].br_startblock || XFS_IS_REALTIME_INODE(ip))) | 451 | if (!(imap[0].br_startblock || XFS_IS_REALTIME_INODE(ip))) |
451 | return xfs_alert_fsblock_zero(ip, &imap[0]); | 452 | return xfs_alert_fsblock_zero(ip, &imap[0]); |
452 | 453 | ||
454 | /* | ||
455 | * Tag the inode as speculatively preallocated so we can reclaim this | ||
456 | * space on demand, if necessary. | ||
457 | */ | ||
458 | if (prealloc) | ||
459 | xfs_inode_set_eofblocks_tag(ip); | ||
460 | |||
453 | *ret_imap = imap[0]; | 461 | *ret_imap = imap[0]; |
454 | return 0; | 462 | return 0; |
455 | } | 463 | } |