Skip to content

Commit 69307ad

Browse files
committed
Merge tag 'xfs-5.9-merge-8' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
Pull xfs fixes from Darrick Wong: "Two small fixes that have come in during the past week: - Fix duplicated words in comments - Fix an ubsan complaint about null pointer arithmetic" * tag 'xfs-5.9-merge-8' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init xfs: delete duplicated words + other fixes
2 parents ff419b6 + 96cf2a2 commit 69307ad

15 files changed

+21
-19
lines changed

fs/xfs/libxfs/xfs_sb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ xfs_sb_quota_to_disk(
600600
* disk. If neither are active, we should NULL the inode.
601601
*
602602
* In all cases, the separate pquotino must remain 0 because it
603-
* it beyond the "end" of the valid non-pquotino superblock.
603+
* is beyond the "end" of the valid non-pquotino superblock.
604604
*/
605605
if (from->sb_qflags & XFS_GQUOTA_ACCT)
606606
to->sb_gquotino = cpu_to_be64(from->sb_gquotino);

fs/xfs/xfs_attr_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ xfs_attr_shortform_compare(const void *a, const void *b)
4444
/*
4545
* Copy out entries of shortform attribute lists for attr_list().
4646
* Shortform attribute lists are not stored in hashval sorted order.
47-
* If the output buffer is not large enough to hold them all, then we
47+
* If the output buffer is not large enough to hold them all, then
4848
* we have to calculate each entries' hashvalue and sort them before
4949
* we can begin returning them to the user.
5050
*/

fs/xfs/xfs_buf_item.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ xfs_buf_item_size_segment(
127127
* stretch of non-contiguous chunks to be logged. Contiguous chunks are logged
128128
* in a single iovec.
129129
*
130-
* Discontiguous buffers need a format structure per region that that is being
130+
* Discontiguous buffers need a format structure per region that is being
131131
* logged. This makes the changes in the buffer appear to log recovery as though
132132
* they came from separate buffers, just like would occur if multiple buffers
133133
* were used instead of a single discontiguous buffer. This enables

fs/xfs/xfs_buf_item_recover.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ xlog_recover_buf_commit_pass2(
948948
* or inode_cluster_size bytes, whichever is bigger. The inode
949949
* buffers in the log can be a different size if the log was generated
950950
* by an older kernel using unclustered inode buffers or a newer kernel
951-
* running with a different inode cluster size. Regardless, if the
951+
* running with a different inode cluster size. Regardless, if
952952
* the inode buffer size isn't max(blocksize, inode_cluster_size)
953953
* for *our* value of inode_cluster_size, then we need to keep
954954
* the buffer out of the buffer cache so that the buffer won't

fs/xfs/xfs_dquot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ xfs_qm_dqget_checks(
807807
}
808808

809809
/*
810-
* Given the file system, id, and type (UDQUOT/GDQUOT), return a a locked
810+
* Given the file system, id, and type (UDQUOT/GDQUOT), return a locked
811811
* dquot, doing an allocation (if requested) as needed.
812812
*/
813813
int

fs/xfs/xfs_export.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ xfs_fs_encode_fh(
5656
fileid_type = FILEID_INO32_GEN_PARENT;
5757

5858
/*
59-
* If the the filesystem may contain 64bit inode numbers, we need
59+
* If the filesystem may contain 64bit inode numbers, we need
6060
* to use larger file handles that can represent them.
6161
*
6262
* While we only allocate inodes that do not fit into 32 bits any

fs/xfs/xfs_inode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ xfs_lock_inodes(
451451
/*
452452
* Currently supports between 2 and 5 inodes with exclusive locking. We
453453
* support an arbitrary depth of locking here, but absolute limits on
454-
* inodes depend on the the type of locking and the limits placed by
454+
* inodes depend on the type of locking and the limits placed by
455455
* lockdep annotations in xfs_lock_inumorder. These are all checked by
456456
* the asserts.
457457
*/
@@ -3105,7 +3105,7 @@ xfs_cross_rename(
31053105
/*
31063106
* xfs_rename_alloc_whiteout()
31073107
*
3108-
* Return a referenced, unlinked, unlocked inode that that can be used as a
3108+
* Return a referenced, unlinked, unlocked inode that can be used as a
31093109
* whiteout in a rename transaction. We use a tmpfile inode here so that if we
31103110
* crash between allocating the inode and linking it into the rename transaction
31113111
* recovery will free the inode and we won't leak it.

fs/xfs/xfs_inode_item.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ xfs_inode_item_format_data_fork(
191191
ip->i_df.if_bytes > 0) {
192192
/*
193193
* Round i_bytes up to a word boundary.
194-
* The underlying memory is guaranteed to
194+
* The underlying memory is guaranteed
195195
* to be there by xfs_idata_realloc().
196196
*/
197197
data_bytes = roundup(ip->i_df.if_bytes, 4);
@@ -275,7 +275,7 @@ xfs_inode_item_format_attr_fork(
275275
ip->i_afp->if_bytes > 0) {
276276
/*
277277
* Round i_bytes up to a word boundary.
278-
* The underlying memory is guaranteed to
278+
* The underlying memory is guaranteed
279279
* to be there by xfs_idata_realloc().
280280
*/
281281
data_bytes = roundup(ip->i_afp->if_bytes, 4);

fs/xfs/xfs_iomap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ xfs_buffered_write_iomap_begin(
865865
}
866866

867867
/*
868-
* Search the data fork fork first to look up our source mapping. We
868+
* Search the data fork first to look up our source mapping. We
869869
* always need the data fork map, as we have to return it to the
870870
* iomap code so that the higher level write code can read data in to
871871
* perform read-modify-write cycles for unaligned writes.

fs/xfs/xfs_log_cil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ xfs_cil_prepare_item(
239239
* this CIL context and so we need to pin it. If we are replacing the
240240
* old_lv, then remove the space it accounts for and make it the shadow
241241
* buffer for later freeing. In both cases we are now switching to the
242-
* shadow buffer, so update the the pointer to it appropriately.
242+
* shadow buffer, so update the pointer to it appropriately.
243243
*/
244244
if (!old_lv) {
245245
if (lv->lv_item->li_ops->iop_pin)

0 commit comments

Comments
 (0)