|
|
| version 1.54, 2007/09/14 06:08:44 | version 1.55, 2007/09/21 16:10:12 |
|---|---|
| Line 187 xfs_dm_send_data_event( | Line 187 xfs_dm_send_data_event( |
| ip = xfs_vtoi(vp); | ip = xfs_vtoi(vp); |
| do { | do { |
| dmstate = ip->i_iocore.io_dmstate; | dmstate = ip->i_d.di_dmstate; |
| if (locktype) | if (locktype) |
| xfs_rwunlock(ip, *locktype); | xfs_rwunlock(ip, *locktype); |
| Line 201 xfs_dm_send_data_event( | Line 201 xfs_dm_send_data_event( |
| if (locktype) | if (locktype) |
| xfs_rwlock(ip, *locktype); | xfs_rwlock(ip, *locktype); |
| } while (!error && (ip->i_iocore.io_dmstate != dmstate)); | } while (!error && (ip->i_d.di_dmstate != dmstate)); |
| return error; | return error; |
| } | } |
| Line 1017 xfs_dm_f_set_eventlist( | Line 1017 xfs_dm_f_set_eventlist( |
| xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); |
| ip->i_d.di_dmevmask = (eventset & max_mask) | (ip->i_d.di_dmevmask & ~max_mask); | ip->i_d.di_dmevmask = (eventset & max_mask) | (ip->i_d.di_dmevmask & ~max_mask); |
| ip->i_iocore.io_dmevmask = ip->i_d.di_dmevmask; | |
| xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
| VN_HOLD(vp); | VN_HOLD(vp); |
| Line 2597 xfs_dm_punch_hole( | Line 2596 xfs_dm_punch_hole( |
| error = -error; | error = -error; |
| /* Let threads in send_data_event know we punched the file. */ | /* Let threads in send_data_event know we punched the file. */ |
| ip->i_iocore.io_dmstate++; | ip->i_d.di_dmstate++; |
| xfs_iunlock(ip, XFS_IOLOCK_EXCL); | xfs_iunlock(ip, XFS_IOLOCK_EXCL); |
| xfs_iflags_set(ip, XFS_IMODIFIED); | xfs_iflags_set(ip, XFS_IMODIFIED); |
| Line 2925 xfs_dm_set_region( | Line 2924 xfs_dm_set_region( |
| * bit, then that's always okay. Otherwise, it's busy. | * bit, then that's always okay. Otherwise, it's busy. |
| */ | */ |
| dm_eventset_t m1; | dm_eventset_t m1; |
| m1 = ip->i_iocore.io_dmevmask & ((1 << DM_EVENT_WRITE) | (1 << DM_EVENT_TRUNCATE)); | m1 = ip->i_d.di_dmevmask & ((1 << DM_EVENT_WRITE) | (1 << DM_EVENT_TRUNCATE)); |
| if (m1 != new_mask) { | if (m1 != new_mask) { |
| return -EBUSY; | return -EBUSY; |
| } | } |
| Line 2942 xfs_dm_set_region( | Line 2941 xfs_dm_set_region( |
| xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); |
| ip->i_d.di_dmevmask = (ip->i_d.di_dmevmask & ~mr_mask) | new_mask; | ip->i_d.di_dmevmask = (ip->i_d.di_dmevmask & ~mr_mask) | new_mask; |
| ip->i_iocore.io_dmevmask = ip->i_d.di_dmevmask; | |
| xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
| VN_HOLD(vp); | VN_HOLD(vp); |
| Line 3221 xfs_dm_send_mmap_event( | Line 3219 xfs_dm_send_mmap_event( |
| offset = 0; /* beginning of file, for now */ | offset = 0; /* beginning of file, for now */ |
| length = 0; /* whole file, for now */ | length = 0; /* whole file, for now */ |
| filesize = ip->i_iocore.io_new_size; | filesize = ip->i_new_size; |
| if (filesize < ip->i_size) { | if (filesize < ip->i_size) { |
| filesize = ip->i_size; | filesize = ip->i_size; |
| } | } |