There are two fixes here.
The first allows the newline at the end of an unchanged region to be
the 'first' newline found so that if there are several others to
provide backup, it will be used.
The second allows the start-of-file to be strong enough context to
not require three full lines of explicit context.
Then we change a lot of the self-tests to match. In each case the
result is a clear improvement.
Signed-off-by: NeilBrown <neilb@suse.de>
*/
for (k = m[j].al; k > 0; k--)
if (ends_line(af.list[m[j].a+k-1])) {
- if (firstk >= m[j].al)
+ if (firstk > m[j].al)
firstk = k;
newlines++;
if (newlines >= 3) {
}
if (k > 0)
m[j].hi = k;
+ else if (j == 0)
+ m[j].hi = firstk;
else if (is_cutpoint(m[j], af,bf,cf))
m[j].hi = 0;
else
void generic_delete_inode(struct inode *inode)
{
struct super_operations *op = inode->i_sb->s_op;
-<<<<<<<
+<<<<<<<
hlist_del_init(&inode->i_hash);
|||||||
-
list_del_init(&inode->i_hash);
=======
-
>>>>>>>
list_del_init(&inode->i_list);
inode->i_state|=I_FREEING;
MD_EXPORT_SYMBOL(md_wakeup_thread);
MD_EXPORT_SYMBOL(md_print_devices);
MD_EXPORT_SYMBOL(find_rdev_nr);
-<<<<<<<
MD_EXPORT_SYMBOL(md_interrupt_thread);
+<<<<<<<
MD_EXPORT_SYMBOL(mddev_map);
|||||||
-MD_EXPORT_SYMBOL(md_interrupt_thread);
EXPORT_SYMBOL(mddev_map);
=======
-MD_EXPORT_SYMBOL(md_interrupt_thread);
>>>>>>>
MODULE_LICENSE("GPL");
struct bio *read_bio;
int i, targets = 0, disks;
struct bitmap *bitmap;
-<<<<<<<
unsigned long flags;
+<<<<<<<
|||||||
- unsigned long flags;
struct bio_list bl;
struct page **behind_pages = NULL;
=======
- unsigned long flags;
struct bio_list bl;
int bl_count;
struct page **behind_pages = NULL;
spin_lock_init(&conf->resync_lock);
init_waitqueue_head(&conf->wait_barrier);
-<<<<<<<
bio_list_init(&conf->pending_bio_list);
+<<<<<<<
conf->last_used = -1;
for (i = 0; i < conf->raid_disks; i++) {
module_param(max_queued, int, S_IRUGO|S_IWUSR);
|||||||
- bio_list_init(&conf->pending_bio_list);
bio_list_init(&conf->flushing_bio_list);
=======
- bio_list_init(&conf->pending_bio_list);
conf->pending_count = 0;
bio_list_init(&conf->flushing_bio_list);
-<<<<<<<
this is a file
with the word
+<<<<<<<
two which is
misspelt
|||||||
-this is a file
-with the word
to which is
misspelt
=======
-this is a file
-with the word
too which is
misspelt
>>>>>>>
-<<<<<<<
this is a file
with the word
+<<<<<<<
two which is
|||||||
-this is a file
-with the word
to which is
=======
-this is a file
-with the word
too which was
>>>>>>>
misspelt
-<<<<<<<
this is a file
with the word
+<<<<<<<
two which is
misspelt
|||||||
-this is a file
-with the word
to which is
misspelt
=======
-this is a file
-with the word
too which was
misspelt
>>>>>>>
current
version
of
-<<<<<<<
the
+<<<<<<<
file.
|||||||
-the
file
=======
-the
file that has changed
>>>>>>>
-<<<<<<<
+<<<<<<<
This is one line of the file
|||||||
-
This is 1 line of the file
=======
-
This is 1 line of the document
&&&&&&&
-
This is one line of the document
>>>>>>>