Skip to content

Commit 9cf4f61

Browse files
committed
Merge branch 'guilt/xfs-5.19-misc-2' into xfs-5.19-for-next
2 parents a44a027 + bc37e4f commit 9cf4f61

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

fs/xfs/xfs_acl.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ extern int xfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
1616
extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
1717
void xfs_forget_acl(struct inode *inode, const char *name);
1818
#else
19-
static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type, bool rcu)
19+
#define xfs_get_acl NULL
20+
#define xfs_set_acl NULL
21+
static inline int __xfs_set_acl(struct inode *inode, struct posix_acl *acl,
22+
int type)
2023
{
21-
return NULL;
24+
return 0;
2225
}
23-
# define xfs_set_acl NULL
2426
static inline void xfs_forget_acl(struct inode *inode, const char *name)
2527
{
2628
}

fs/xfs/xfs_filestream.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,12 @@ xfs_filestream_pick_ag(
128128
if (!pag->pagf_init) {
129129
err = xfs_alloc_pagf_init(mp, NULL, ag, trylock);
130130
if (err) {
131-
xfs_perag_put(pag);
132-
if (err != -EAGAIN)
131+
if (err != -EAGAIN) {
132+
xfs_perag_put(pag);
133133
return err;
134+
}
134135
/* Couldn't lock the AGF, skip this AG. */
135-
continue;
136+
goto next_ag;
136137
}
137138
}
138139

fs/xfs/xfs_iops.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ xfs_generic_create(
209209
if (unlikely(error))
210210
goto out_cleanup_inode;
211211

212-
#ifdef CONFIG_XFS_POSIX_ACL
213212
if (default_acl) {
214213
error = __xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT);
215214
if (error)
@@ -220,7 +219,6 @@ xfs_generic_create(
220219
if (error)
221220
goto out_cleanup_inode;
222221
}
223-
#endif
224222

225223
xfs_setup_iops(ip);
226224

fs/xfs/xfs_trans_dquot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ xfs_dqresv_check(
603603
return QUOTA_NL_ISOFTLONGWARN;
604604
}
605605

606-
res->warnings++;
607606
return QUOTA_NL_ISOFTWARN;
608607
}
609608

0 commit comments

Comments
 (0)