Skip to content

Commit 825b49e

Browse files
Christoph HellwigChandan Babu R
authored andcommitted
xfs: turn the xfs_trans_mod_dquot_byino stub into an inline function
Without this upcoming change can cause an unused variable warning, when adding a local variable for the fields field passed to it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
1 parent 944df75 commit 825b49e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

fs/xfs/xfs_quota.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ xfs_qm_vop_dqalloc(struct xfs_inode *ip, kuid_t kuid, kgid_t kgid,
127127
}
128128
#define xfs_trans_dup_dqinfo(tp, tp2)
129129
#define xfs_trans_free_dqinfo(tp)
130-
#define xfs_trans_mod_dquot_byino(tp, ip, fields, delta) do { } while (0)
130+
static inline void xfs_trans_mod_dquot_byino(struct xfs_trans *tp,
131+
struct xfs_inode *ip, uint field, int64_t delta)
132+
{
133+
}
131134
#define xfs_trans_apply_dquot_deltas(tp)
132135
#define xfs_trans_unreserve_and_mod_dquots(tp)
133136
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,

0 commit comments

Comments
 (0)