aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2015-11-09 18:20:48 -0500
committerDave Chinner <david@fromorbit.com>2015-11-09 18:20:48 -0500
commit4e14e49a91e18098fd8ef30743972e0c3cb727c1 (patch)
treed9f6d8005ccd2a3ccbb13e80c639600b1e1bd6b4
parent264e89ad3412ce1e2977e5e807bcf7d20d3b0a59 (diff)
parent7a29ac474a47eb8cf212b45917683ae89d6fa13b (diff)
Merge branch 'xfs-misc-fixes-for-4.4-3' into for-next
-rw-r--r--fs/xfs/xfs_acl.c1
-rw-r--r--fs/xfs/xfs_acl.h1
-rw-r--r--fs/xfs/xfs_log_recover.c2
-rw-r--r--fs/xfs/xfs_super.c7
4 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c
index 763e36560681..6bb470fbb8e8 100644
--- a/fs/xfs/xfs_acl.c
+++ b/fs/xfs/xfs_acl.c
@@ -163,6 +163,7 @@ xfs_get_acl(struct inode *inode, int type)
163 */ 163 */
164 if (error == -ENOATTR) 164 if (error == -ENOATTR)
165 goto out_update_cache; 165 goto out_update_cache;
166 acl = ERR_PTR(error);
166 goto out; 167 goto out;
167 } 168 }
168 169
diff --git a/fs/xfs/xfs_acl.h b/fs/xfs/xfs_acl.h
index 75af0a4d9028..52f8255d6bdf 100644
--- a/fs/xfs/xfs_acl.h
+++ b/fs/xfs/xfs_acl.h
@@ -20,7 +20,6 @@
20 20
21struct inode; 21struct inode;
22struct posix_acl; 22struct posix_acl;
23struct xfs_inode;
24 23
25#ifdef CONFIG_XFS_POSIX_ACL 24#ifdef CONFIG_XFS_POSIX_ACL
26extern struct posix_acl *xfs_get_acl(struct inode *inode, int type); 25extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index f8f1363dc045..c5ecaacdd218 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -3431,7 +3431,7 @@ xlog_recover_add_to_cont_trans(
3431 * previous record. Copy the rest of the header. 3431 * previous record. Copy the rest of the header.
3432 */ 3432 */
3433 if (list_empty(&trans->r_itemq)) { 3433 if (list_empty(&trans->r_itemq)) {
3434 ASSERT(len < sizeof(struct xfs_trans_header)); 3434 ASSERT(len <= sizeof(struct xfs_trans_header));
3435 if (len > sizeof(struct xfs_trans_header)) { 3435 if (len > sizeof(struct xfs_trans_header)) {
3436 xfs_warn(log->l_mp, "%s: bad header length", __func__); 3436 xfs_warn(log->l_mp, "%s: bad header length", __func__);
3437 return -EIO; 3437 return -EIO;
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 0378e22eeae1..36bd8825bfb0 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -838,17 +838,18 @@ xfs_init_mount_workqueues(
838 goto out_destroy_unwritten; 838 goto out_destroy_unwritten;
839 839
840 mp->m_reclaim_workqueue = alloc_workqueue("xfs-reclaim/%s", 840 mp->m_reclaim_workqueue = alloc_workqueue("xfs-reclaim/%s",
841 WQ_FREEZABLE, 0, mp->m_fsname); 841 WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname);
842 if (!mp->m_reclaim_workqueue) 842 if (!mp->m_reclaim_workqueue)
843 goto out_destroy_cil; 843 goto out_destroy_cil;
844 844
845 mp->m_log_workqueue = alloc_workqueue("xfs-log/%s", 845 mp->m_log_workqueue = alloc_workqueue("xfs-log/%s",
846 WQ_FREEZABLE|WQ_HIGHPRI, 0, mp->m_fsname); 846 WQ_MEM_RECLAIM|WQ_FREEZABLE|WQ_HIGHPRI, 0,
847 mp->m_fsname);
847 if (!mp->m_log_workqueue) 848 if (!mp->m_log_workqueue)
848 goto out_destroy_reclaim; 849 goto out_destroy_reclaim;
849 850
850 mp->m_eofblocks_workqueue = alloc_workqueue("xfs-eofblocks/%s", 851 mp->m_eofblocks_workqueue = alloc_workqueue("xfs-eofblocks/%s",
851 WQ_FREEZABLE, 0, mp->m_fsname); 852 WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname);
852 if (!mp->m_eofblocks_workqueue) 853 if (!mp->m_eofblocks_workqueue)
853 goto out_destroy_log; 854 goto out_destroy_log;
854 855