2 ===================================================================
3 RCS file: /cvs/linux-2.4-xfs/linux/fs/xfs/linux/xfs_lrw.c,v
4 retrieving revision 1.148
5 retrieving revision 1.149
6 diff -u -r1.148 -r1.149
7 --- linux/fs/xfs/linux/xfs_lrw.c 2002/06/14 18:03:36 1.148
8 +++ linux/fs/xfs/linux/xfs_lrw.c 2002/06/18 14:14:30 1.149
10 STATIC int xfs_iomap_write_direct(xfs_iocore_t *, loff_t, size_t, pb_bmap_t *,
12 STATIC int _xfs_imap_to_bmap(xfs_iocore_t *, xfs_off_t, xfs_bmbt_irec_t *,
13 - pb_bmap_t *, int, int, bmap_flags_t);
14 + pb_bmap_t *, int, int);
17 #define xfs_strat_write_check(io,off,count,imap,nimap)
20 if (nimaps && !ISNULLSTARTBLOCK(imap[0].br_startblock)) {
21 *npbmaps = _xfs_imap_to_bmap(&ip->i_iocore, offset, imap,
22 - pbmapp, nimaps, *npbmaps, 0);
23 + pbmapp, nimaps, *npbmaps);
28 XFS_IUNLOCK(mp, io, XFS_ILOCK_EXCL | XFS_EXTSIZE_WR);
29 maps = min(nimaps, *npbmaps);
30 *npbmaps = _xfs_imap_to_bmap(io, offset, &imap[i],
31 - pbmapp, maps, *npbmaps, 0);
32 + pbmapp, maps, *npbmaps);
33 XFS_STATS_INC(xfsstats.xs_xstrat_quick);
37 xfs_bmbt_irec_t *imap,
39 int imaps, /* Number of imap entries */
40 - int pbmaps, /* Number of pbmap entries */
42 + int pbmaps) /* Number of pbmap entries */
47 pbmapp->pbm_offset = XFS_FSB_TO_B(mp, imap->br_startoff);
48 pbmapp->pbm_delta = offset - pbmapp->pbm_offset;
49 pbmapp->pbm_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount);
50 - pbmapp->pbm_flags = flags;
51 + pbmapp->pbm_flags = 0;
53 start_block = imap->br_startblock;
54 if (start_block == HOLESTARTBLOCK) {
58 *npbmaps = _xfs_imap_to_bmap(io, offset, imap, pbmapp, nimaps,
63 return XFS_ERROR(error);
67 pbmapp->pbm_bn = PAGE_BUF_DADDR_NULL;
68 - pbmapp->pbm_flags = PBMF_DELAY|PBMF_NEW;
69 + pbmapp->pbm_flags = PBMF_DELAY;
71 pbmapp->pbm_target = io->io_flags & XFS_IOCORE_RT ?
72 mp->m_rtdev_targ.pb_targ :
76 maps = min(nimaps, maps);
77 - *npbmaps = _xfs_imap_to_bmap(io, offset, &imap[0], pbmapp, maps, *npbmaps, PBMF_NEW);
78 + *npbmaps = _xfs_imap_to_bmap(io, offset, &imap[0], pbmapp, maps,
82 * this is new since xfs_iomap_read
84 ===================================================================
85 RCS file: /cvs/linux-2.4-xfs/linux/fs/xfs/linux/xfs_iops.c,v
86 retrieving revision 1.151
87 retrieving revision 1.152
88 diff -u -r1.151 -r1.152
89 --- linux/fs/xfs/linux/xfs_iops.c 2002/06/17 06:53:26 1.151
90 +++ linux/fs/xfs/linux/xfs_iops.c 2002/06/18 14:14:30 1.152
92 set_bit(BH_Mapped, &bh_result->b_state);
95 + if (create && !buffer_mapped(bh_result))
96 + set_bit(BH_New, &bh_result->b_state);
98 if (pbmap.pbm_flags & PBMF_DELAY) {
102 set_bit(BH_Delay, &bh_result->b_state);
105 - if (create && (pbmap.pbm_flags & PBMF_NEW))
106 - set_bit(BH_New, &bh_result->b_state);