linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Andrew Morton <akpm@linux-foundation.org>,
	Al Viro <viro@ZenIV.linux.org.uk>
Cc: Linux-Next Mailing List <linux-next@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	David Howells <dhowells@redhat.com>,
	Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Subject: linux-next: manual merge of the akpm-current tree with the vfs tree
Date: Mon, 10 Jul 2017 14:41:36 +1000	[thread overview]
Message-ID: <20170710144136.208402ce@canb.auug.org.au> (raw)

Hi Andrew,

Today's linux-next merge of the akpm-current tree got a conflict in:

  fs/hugetlbfs/inode.c

between commit:

  4a25220d4e43 ("hugetlbfs: Implement show_options")

from the vfs tree and commit:

  25153b1fbd8a ("mm: hwpoison: dissolve in-use hugepage in unrecoverable memory error")

from the akpm-current 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.

-- 
Cheers,
Stephen Rothwell

diff --cc fs/hugetlbfs/inode.c
index 99b3b9836575,52388611635e..000000000000
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@@ -851,46 -851,16 +851,56 @@@ static int hugetlbfs_migrate_page(struc
  	return MIGRATEPAGE_SUCCESS;
  }
  
 +/*
 + * Display the mount options in /proc/mounts.
 + */
 +static int hugetlbfs_show_options(struct seq_file *m, struct dentry *root)
 +{
 +	struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(root->d_sb);
 +	struct hugepage_subpool *spool = sbinfo->spool;
 +	unsigned long hpage_size = huge_page_size(sbinfo->hstate);
 +	unsigned hpage_shift = huge_page_shift(sbinfo->hstate);
 +	char mod;
 +
 +	if (!uid_eq(sbinfo->uid, GLOBAL_ROOT_UID))
 +		seq_printf(m, ",uid=%u",
 +			   from_kuid_munged(&init_user_ns, sbinfo->uid));
 +	if (!gid_eq(sbinfo->gid, GLOBAL_ROOT_GID))
 +		seq_printf(m, ",gid=%u",
 +			   from_kgid_munged(&init_user_ns, sbinfo->gid));
 +	if (sbinfo->mode != 0755)
 +		seq_printf(m, ",mode=%o", sbinfo->mode);
 +	if (sbinfo->max_inodes != -1)
 +		seq_printf(m, ",nr_inodes=%lu", sbinfo->max_inodes);
 +
 +	hpage_size /= 1024;
 +	mod = 'K';
 +	if (hpage_size >= 1024) {
 +		hpage_size /= 1024;
 +		mod = 'M';
 +	}
 +	seq_printf(m, ",pagesize=%lu%c", hpage_size, mod);
 +	if (spool) {
 +		if (spool->max_hpages != -1)
 +			seq_printf(m, ",size=%llu",
 +				   (unsigned long long)spool->max_hpages << hpage_shift);
 +		if (spool->min_hpages != -1)
 +			seq_printf(m, ",min_size=%llu",
 +				   (unsigned long long)spool->min_hpages << hpage_shift);
 +	}
 +	return 0;
 +}
 +
+ static int hugetlbfs_error_remove_page(struct address_space *mapping,
+ 				struct page *page)
+ {
+ 	struct inode *inode = mapping->host;
+ 
+ 	remove_huge_page(page);
+ 	hugetlb_fix_reserve_counts(inode);
+ 	return 0;
+ }
+ 
  static int hugetlbfs_statfs(struct dentry *dentry, struct kstatfs *buf)
  {
  	struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb);

             reply	other threads:[~2017-07-10  4:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-10  4:41 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-06-19  6:36 linux-next: manual merge of the akpm-current tree with the vfs tree Stephen Rothwell
2018-05-29  9:37 Stephen Rothwell
2016-01-11  7:48 Stephen Rothwell
2016-01-11 13:26 ` Vlastimil Babka
2015-12-03  0:18 Mark Brown
2015-06-17  3:24 Michael Ellerman
2015-04-13 11:10 Stephen Rothwell
2015-04-13 11:00 Stephen Rothwell
2015-04-13 10:57 Stephen Rothwell
2015-03-13  5:31 Stephen Rothwell
2015-03-13  5:27 Stephen Rothwell
2013-11-08  7:38 Stephen Rothwell
2013-11-08 18:58 ` Josh Triplett
2013-11-08  7:35 Stephen Rothwell
2013-11-08  7:30 Stephen Rothwell
2013-11-08 12:59 ` Oleg Nesterov
2013-11-08 13:48   ` Oleg Nesterov
2013-02-27  2:00 Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170710144136.208402ce@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=n-horiguchi@ah.jp.nec.com \
    --cc=viro@ZenIV.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).