linux-next: manual merge of the gfs2 tree with the origin tree
Subsystems (2)
Mark Brown
maintainerHi all,
Today's linux-next merge of the gfs2 tree got a conflict in:
fs/gfs2/inode.c
between commit:
9e8fc16dc6b47 ("iomap: pass iomap_iter_next_fn directly instead of struct iomap_ops")
from the origin tree and commit:
e3280ea8b7396 ("gfs2: Fix NULL pointer dereference in gfs2_seek_data/gfs2_seek_hole")
from the gfs2 tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
fs/gfs2/inode.c +0 -0
@@@ -2253,9 -2253,11 +2253,11 @@@ loff_t gfs2_seek_data(struct file *fileinode_lock_shared (inode); ret =gfs2_glock_nq_init (gl,LM_ST_SHARED ,0 , &gh); -if (!ret) - ret =iomap_seek_data (inode, offset, gfs2_iomap_next); +if (ret) + goto out; - ret =iomap_seek_data (inode, offset, &gfs2_iomap_ops); ++ ret =iomap_seek_data (inode, offset, gfs2_iomap_next);gfs2_glock_dq_uninit (&gh); + out:inode_unlock_shared (inode);if (ret <0 )inode_lock_shared (inode); ret =gfs2_glock_nq_init (gl,LM_ST_SHARED ,0 , &gh); -if (!ret) - ret =iomap_seek_hole (inode, offset, gfs2_iomap_next); +if (ret) + goto out; - ret =iomap_seek_hole (inode, offset, &gfs2_iomap_ops); ++ ret =iomap_seek_hole (inode, offset, gfs2_iomap_next);gfs2_glock_dq_uninit (&gh); + out:inode_unlock_shared (inode);if (ret <0 )