=========================================================================== Index: linux/fs/xfs/linux/xfs_lrw.c =========================================================================== 669a670,682 > > /* > * The iolock was dropped and reaquired in > * xfs_dm_send_data_event so we have to recheck the size > * when appending. We will only "goto start;" once, > * since having sent the event prevents another call > * to xfs_dm_send_data_event, which is what > * allows the size to change in the first place. > */ > if ((ioflags & O_APPEND) && savedsize != xip->i_d.di_size) { > *offsetp = isize = xip->i_d.di_size; > goto start; > } 671,682c684 < /* < * The iolock was dropped and reaquired in < * xfs_dm_send_data_event so we have to recheck the size < * when appending. We will only "goto start;" once, < * since having sent the event prevents another call < * to xfs_dm_send_data_event, which is what < * allows the size to change in the first place. < */ < if ((ioflags & O_APPEND) && savedsize != xip->i_d.di_size) { < *offsetp = isize = xip->i_d.di_size; < goto start; < } --- >